forked from AuroraMiddleware/gtk
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:
parent
dff61b02ba
commit
0eeaa935b9
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user