From: Quentin Glidic <sardemff7+...@sardemff7.net> If we start a special (grabbing) client when Weston is unfocused, it would lose focus when coming back to Weston.
Signed-off-by: Quentin Glidic <sardemff7+...@sardemff7.net> --- libweston/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libweston/input.c b/libweston/input.c index 4fedc558..6ebb4f97 100644 --- a/libweston/input.c +++ b/libweston/input.c @@ -2070,7 +2070,8 @@ notify_keyboard_focus_in(struct weston_seat *seat, struct wl_array *keys, if (surface) { wl_list_remove(&seat->saved_kbd_focus_listener.link); - weston_keyboard_set_focus(keyboard, surface); + if (!keyboard->focus) + weston_keyboard_set_focus(keyboard, surface); seat->saved_kbd_focus = NULL; } } -- 2.11.1 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel