From 2e6eb097b6e23b8923bbfc68b1843d5ccde1955b Mon Sep 17 00:00:00 2001 From: Ilia Bozhinov Date: Sun, 29 Jul 2018 20:02:00 +0300 Subject: rootston: focus newly-created surfaces Whenever a new surface is created, we have to update the cursor focus, even if there's no input event. So, we generate one motion event, and reuse the code to update the proper cursor focus. We need to do this for all surface roles - toplevels, popups, subsurfaces. Fixes #1162 --- include/rootston/input.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/rootston/input.h') diff --git a/include/rootston/input.h b/include/rootston/input.h index ef46fab2..2cdb13e6 100644 --- a/include/rootston/input.h +++ b/include/rootston/input.h @@ -32,4 +32,6 @@ struct roots_seat *input_get_seat(struct roots_input *input, char *name); struct roots_seat *input_last_active_seat(struct roots_input *input); +void input_update_cursor_focus(struct roots_input *input); + #endif -- cgit v1.2.3