[mutter/wip/dnd-surface2: 18/18] wayland: Update focus window during DnD motion
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/dnd-surface2: 18/18] wayland: Update focus window during DnD motion
- Date: Tue, 30 Sep 2014 15:32:58 +0000 (UTC)
commit 5ebda22782f9e9d0f3f55d69494f1310ef7e4bb5
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Sep 30 17:15:48 2014 +0200
wayland: Update focus window during DnD motion
But don't emit crossing events, since the DnD grab is in effect.
src/wayland/meta-wayland-data-device.c | 2 ++
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 76fcb13..4fbcf05 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]