From 82153ff23fc551168c7f238167b31a5aaa89a42d Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 9 Mar 2016 16:37:41 +0100 Subject: [PATCH] wayland: Always send focus() when starting a pointer grab Even if the focus is NULL, we may want the current grab focus code to be run. https://bugzilla.gnome.org/show_bug.cgi?id=762104 --- src/wayland/meta-wayland-pointer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index b8a138543..f7106c609 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -863,8 +863,7 @@ meta_wayland_pointer_start_grab (MetaWaylandPointer *pointer, interface = pointer->grab->interface; grab->pointer = pointer; - if (pointer->current) - interface->focus (pointer->grab, pointer->current); + interface->focus (pointer->grab, pointer->current); } void