[metacity] keybindings: don't grab keys on override redirect windows



commit 62787260c2ecf6578360d71205460273b2deb401
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Feb 28 01:01:47 2017 +0200

    keybindings: don't grab keys on override redirect windows

 src/core/keybindings.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 228e90c..d55296c 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -799,7 +799,8 @@ meta_window_grab_keys (MetaWindow  *window)
   if (all_bindings_disabled)
     return;
 
-  if (window->type == META_WINDOW_DOCK)
+  if (window->type == META_WINDOW_DOCK ||
+      window->override_redirect)
     {
       if (window->keys_grabbed)
         ungrab_all_keys (window->display, window->xwindow);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]