From 3f022ca963f2a55d17cec3aa77e63a166b7e98dd Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Tue, 3 Dec 2013 15:47:10 +0100 Subject: [PATCH] window: Possibly set the pointer focus on newly mapped wayland windows Windows showing up under the pointer must get the pointer focus. https://bugzilla.gnome.org/show_bug.cgi?id=719725 --- src/core/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index 92ffc747a..7435c83c1 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -3369,6 +3369,9 @@ meta_window_show (MetaWindow *window) if (did_show) meta_screen_queue_check_fullscreen (window->screen); + if (did_show && window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND) + meta_wayland_compositor_repick (meta_wayland_compositor_get_default ()); + /* * Now that we have shown the window, we no longer want to consider the * initial timestamp in any subsequent deliberations whether to focus this