summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-09-30 17:15:48 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-09-30 17:34:32 +0200
commit410b37bc53c6e3760fb9dfbf93ac9b6516aa1c86 (patch)
tree4961daf875878e595cd20adb81f225b4edc45077
parent6dfdc6d6ec8ab917c5959986d216310e059db6f9 (diff)
downloadmutter-wip/dnd-surface2.tar.gz
wayland: Update focus window during DnD motionwip/dnd-surface2
But don't emit crossing events, since the DnD grab is in effect. https://bugzilla.gnome.org/show_bug.cgi?id=728030
-rw-r--r--src/wayland/meta-wayland-data-device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c
index 76fcb138a..4fbcf05c4 100644
--- a/src/wayland/meta-wayland-data-device.c
+++ b/src/wayland/meta-wayland-data-device.c
@@ -212,6 +212,8 @@ drag_grab_focus (MetaWaylandPointerGrab *grab,
if (drag_grab->drag_focus == surface)
return;
+ meta_wayland_pointer_set_focus (&seat->pointer, surface, FALSE);
+
if (drag_grab->drag_focus_data_device)
{
wl_data_device_send_leave (drag_grab->drag_focus_data_device);