[metacity] keybindings: fix check for events on UI widgets
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] keybindings: fix check for events on UI widgets
- Date: Sat, 4 Mar 2017 16:50:06 +0000 (UTC)
commit 1386c25cc75eecb82b1c2760c1f8204334900068
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Oct 28 16:30:51 2010 -0400
keybindings: fix check for events on UI widgets
Now that we create MetaWindow objects for override-redirect windows, we need
to check all key press events to see if they are on GTK+ widgets, not just
events that don't match a MetaWindow. This fixes a problem with alt-Tab stealing
grabs away from the window menu.
https://bugzilla.gnome.org/show_bug.cgi?id=633398
src/core/keybindings.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index f836cf4..572d900 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1272,8 +1272,7 @@ meta_display_process_key_event (MetaDisplay *display,
return; /* event window is destroyed */
/* ignore key events on popup menus and such. */
- if (window == NULL &&
- meta_ui_window_is_widget (screen->ui, event->xany.window))
+ if (meta_ui_window_is_widget (screen->ui, event->xany.window))
return;
keysym = keycode_to_keysym (display, event->xkey.keycode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]