[mutter/wayland] window: Possibly set the pointer focus on newly mapped wayland windows



commit 3f022ca963f2a55d17cec3aa77e63a166b7e98dd
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue Dec 3 15:47:10 2013 +0100

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 92ffc74..7435c83 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


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