[gtk+] 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+] wayland: do not set PRIMARY selection if focus is lost
- Date: Mon, 20 Jun 2016 18:14:03 +0000 (UTC)
commit 0eeaa935b9a38cc1f4735b53c21ec0d9e507563e
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 b19fd64..72d9baf 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1058,6 +1058,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]