[gtk+] wayland: Only set wayland selection for GDK_SELECTION_CLIPBOARD



commit 8e8951df72068dc68d62aa3c3b07237447bd01ed
Author: Kristian Høgsberg <krh bitplanet net>
Date:   Fri Aug 23 23:10:22 2013 -0700

    wayland: Only set wayland selection for GDK_SELECTION_CLIPBOARD
    
    Wayland only has one selection, which corresponds to GDK_SELECTION_CLIPBOARD.

 gtk/gtkclipboard-wayland.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkclipboard-wayland.c b/gtk/gtkclipboard-wayland.c
index d3eb906..8f6012e 100644
--- a/gtk/gtkclipboard-wayland.c
+++ b/gtk/gtkclipboard-wayland.c
@@ -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) ||


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]