[mutter] pointer: Repick after the focused surface is destroyed



commit e496ed50d6b127a57cfc189bad19a32564fde46b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Oct 6 16:29:44 2014 -0700

    pointer: Repick after the focused surface is destroyed
    
    Having a null focus is incorrect -- we want to pick the surface that's
    under the new pointer position.

 src/wayland/meta-wayland-pointer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index b730e6d..2624857 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -95,7 +95,7 @@ pointer_handle_focus_surface_destroy (struct wl_listener *listener, void *data)
 {
   MetaWaylandPointer *pointer = wl_container_of (listener, pointer, focus_surface_listener);
 
-  meta_wayland_pointer_set_focus (pointer, NULL);
+  meta_wayland_pointer_repick (pointer);
 }
 
 static void


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