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);