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
This commit is contained in:
Olivier Fourdan 2016-06-20 15:52:32 +02:00 committed by Matthias Clasen
parent dff61b02ba
commit 0eeaa935b9

View File

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