forked from AuroraMiddleware/gtk
wayland: Only set wayland selection for GDK_SELECTION_CLIPBOARD
Wayland only has one selection, which corresponds to GDK_SELECTION_CLIPBOARD.
This commit is contained in:
parent
771dbe0592
commit
8e8951df72
@ -148,6 +148,9 @@ gtk_clipboard_wayland_set_contents (GtkClipboard *gtkclipboard,
|
||||
gchar **mimetypes;
|
||||
SetContentClosure *closure, *last_closure;
|
||||
|
||||
if (gtkclipboard->selection != GDK_SELECTION_CLIPBOARD)
|
||||
return;
|
||||
|
||||
last_closure = clipboard->last_closure;
|
||||
if (!last_closure ||
|
||||
(!last_closure->have_owner && have_owner) ||
|
||||
|
Loading…
Reference in New Issue
Block a user