mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-01-11 16:41:55 +00:00
gtk: take selection into account in clipboard_release
This commit is contained in:
parent
ed95a3ccba
commit
e15ca100b9
@ -1686,8 +1686,11 @@ static gboolean clipboard_request(SpiceMainChannel *main, guint selection,
|
||||
static void clipboard_release(SpiceMainChannel *main, guint selection, gpointer data)
|
||||
{
|
||||
spice_display *d = SPICE_DISPLAY_GET_PRIVATE(data);
|
||||
GtkClipboard* clipboard = get_clipboard_from_selection(d, selection);
|
||||
if (!clipboard)
|
||||
return;
|
||||
|
||||
gtk_clipboard_clear(d->clipboard);
|
||||
gtk_clipboard_clear(clipboard);
|
||||
}
|
||||
|
||||
static void channel_new(SpiceSession *s, SpiceChannel *channel, gpointer data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user