[gnome-shell/wip/carlosg/x11less-preparations: 1/3] shell: Use MetaDisplay input focus API



commit 4a89d778aab1edd1a88c367c7a53642958296e42
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jan 8 17:14:24 2019 +0100

    shell: Use MetaDisplay input focus API
    
    Replaces used of (now removed) MetaX11Display focus API (which happened to
    work for wayland too).

 src/shell-app.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index a4d21b08e..d1101f396 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -1156,11 +1156,10 @@ _shell_app_handle_startup_sequence (ShellApp            *app,
   if (starting && shell_app_get_state (app) == SHELL_APP_STATE_STOPPED)
     {
       MetaDisplay *display = shell_global_get_display (shell_global_get ());
-      MetaX11Display *x11_display = meta_display_get_x11_display (display);
 
       shell_app_state_transition (app, SHELL_APP_STATE_STARTING);
-      meta_x11_display_focus_the_no_focus_window (x11_display,
-                                                  meta_startup_sequence_get_timestamp (sequence));
+      meta_display_unset_input_focus (display,
+                                      meta_startup_sequence_get_timestamp (sequence));
       app->started_on_workspace = meta_startup_sequence_get_workspace (sequence);
     }
 


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