[metacity] keybindings: fix shortcuts regression
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] keybindings: fix shortcuts regression
- Date: Tue, 4 Jul 2017 08:35:59 +0000 (UTC)
commit 1de8fdb4804b5e28965d454a642c9eab2bf5636c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Jul 4 11:23:30 2017 +0300
keybindings: fix shortcuts regression
Commit b9cfaa8803fa019b3a1502b067802f2434b6e737 removed
meta_display_screen_for_xwindow function. It was supposed to be
replaced with display->screen...
https://bugzilla.gnome.org/show_bug.cgi?id=784500
src/core/keybindings.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 50e70e5..6a1d144 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]