[gtk+/gtk-3-20] wayland: do not set PRIMARY selection if focus is lost
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] wayland: do not set PRIMARY selection if focus is lost
- Date: Thu, 4 Aug 2016 15:39:38 +0000 (UTC)
commit c906dbc9f1a2375965e38eea1e1c34766ffc7141
Author: Olivier Fourdan <ofourdan redhat com>
Date: Mon Jun 20 15:52:32 2016 +0200
wayland: do not set PRIMARY selection if focus is lost
If keyboard focus is (already) lost, do not advertise PRIMARY selection.
https://bugzilla.gnome.org/show_bug.cgi?id=767848
gdk/wayland/gdkdevice-wayland.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 8999cb4..d9a36b0 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -967,6 +967,9 @@ primary_selection_selection (void *data,
GdkWaylandSeat *seat = data;
GdkAtom selection;
+ if (!seat->keyboard_focus)
+ return;
+
GDK_NOTE (EVENTS,
g_message ("primary selection selection, device %p, data offer %p",
gtk_primary_selection_device, gtk_primary_offer));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]