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.
This commit is contained in:
Jasper St. Pierre 2014-10-12 21:52:30 -07:00
parent 722d4c6c17
commit 64295e8cd7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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