summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/keybindings.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 50e70e58..6a1d144b 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1262,11 +1262,7 @@ meta_display_process_key_event (MetaDisplay *display,
if (all_bindings_disabled)
return;
- /* if key event was on root window, we have a shortcut */
- screen = meta_display_screen_for_root (display, event->xkey.window);
-
- if (screen == NULL)
- return; /* event window is destroyed */
+ screen = display->screen;
/* ignore key events on popup menus and such. */
if (meta_ui_window_is_widget (screen->ui, event->xany.window))