mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[client] spice: separate clipboard state by direction
This commit is contained in:
@@ -62,7 +62,8 @@ void cb_spiceNotice(const PSDataType type)
|
||||
if (!g_state.cbAvailable)
|
||||
return;
|
||||
|
||||
g_state.cbType = type;
|
||||
atomic_store_explicit(
|
||||
&g_state.cbRemoteType, type, memory_order_release);
|
||||
g_state.ds->cbNotice(cb_spiceTypeToLGType(type));
|
||||
}
|
||||
|
||||
@@ -113,6 +114,9 @@ void cb_spiceRelease(void)
|
||||
if (!g_params.clipboardToLocal)
|
||||
return;
|
||||
|
||||
atomic_store_explicit(
|
||||
&g_state.cbRemoteType, SPICE_DATA_NONE, memory_order_release);
|
||||
|
||||
if (g_state.cbAvailable)
|
||||
g_state.ds->cbRelease();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user