[mutter/wip/dnd-surface3: 2/11] wayland: Update focus surface during DnD motion events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/dnd-surface3: 2/11] wayland: Update focus surface during DnD motion events
- Date: Mon, 6 Oct 2014 15:12:09 +0000 (UTC)
commit a5764e7e712b0e28db2b39a71e5297363b8b25ec
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Oct 6 16:38:29 2014 +0200
wayland: Update focus surface during DnD motion events
A further cleanup might be to have wl_data_device.enter/leave sent
from the corresponding grab methods, but this suffices to have the
focus surface properly updated.
https://bugzilla.gnome.org/show_bug.cgi?id=728030
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 60d1c8c..fc38be8 100644
--- a/src/wayland/meta-wayland-data-device.c
+++ b/src/wayland/meta-wayland-data-device.c
@@ -202,6 +202,8 @@ drag_grab_focus (MetaWaylandPointerGrab *grab,
if (drag_grab->drag_focus == surface)
return;
+ meta_wayland_pointer_set_focus (&seat->pointer, surface);
+
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]