From 64295e8cd7010190c740b839b59794dd2f9145b7 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 12 Oct 2014 21:52:30 -0700 Subject: [PATCH] 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 cdc655685..095d853d6 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 3845170a8..17a53c176 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);