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:
Kristian Høgsberg 2013-08-23 23:10:22 -07:00
parent 771dbe0592
commit 8e8951df72

View File

@ -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) ||