currently defult_grab_focus does not repick a surface if a mouse
button is pressed. change it so it does repick if there is no
current focus surface, like when the focus gets destroyed, so the
cursor does not disappear.
---
 src/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input.c b/src/input.c
index a7a37e5..76ce81a 100644
--- a/src/input.c
+++ b/src/input.c
@@ -102,7 +102,7 @@ default_grab_focus(struct weston_pointer_grab *grab)
        struct weston_surface *surface;
        wl_fixed_t sx, sy;
 
-       if (pointer->button_count > 0)
+       if (pointer->button_count > 0 && pointer->focus)
                return;
 
        surface = weston_compositor_pick_surface(pointer->seat->compositor,
-- 
1.8.3.2

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to