[mutter] wayland: Always send focus() when starting a pointer grab



commit 82153ff23fc551168c7f238167b31a5aaa89a42d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Mar 9 16:37:41 2016 +0100

    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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index b8a1385..f7106c6 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]