[mutter] keybindings: Always freeze on the stage window



commit 64295e8cd7010190c740b839b59794dd2f9145b7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Oct 12 21:52:30 2014 -0700

    keybindings: Always freeze on the stage window
    
    This is what gnome-shell does, so there's no reason to include this as
    part of our API.

 src/core/keybindings.c |    3 ++-
 src/meta/display.h     |    1 -
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index cdc6556..095d853 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1660,13 +1660,14 @@ meta_window_ungrab_all_keys (MetaWindow *window, guint32 timestamp)
 }
 
 void
-meta_display_freeze_keyboard (MetaDisplay *display, Window window, guint32 timestamp)
+meta_display_freeze_keyboard (MetaDisplay *display, guint32 timestamp)
 {
   MetaBackend *backend = meta_get_backend ();
 
   if (!META_IS_BACKEND_X11 (backend))
     return;
 
+  Window window = meta_backend_x11_get_xwindow (META_BACKEND_X11 (backend));
   grab_keyboard (window, timestamp, XIGrabModeSync);
 }
 
diff --git a/src/meta/display.h b/src/meta/display.h
index 3845170..17a53c1 100644
--- a/src/meta/display.h
+++ b/src/meta/display.h
@@ -173,7 +173,6 @@ void meta_display_unmanage_screen (MetaDisplay *display,
 void meta_display_clear_mouse_mode (MetaDisplay *display);
 
 void meta_display_freeze_keyboard (MetaDisplay *display,
-                                   Window       window,
                                    guint32      timestamp);
 void meta_display_ungrab_keyboard (MetaDisplay *display,
                                    guint32      timestamp);


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