[mutter] window: Mark all override-redirect window types as appears-focused



commit ec797b055d99ab3a2e52020a0f7c0ca337173bf8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Aug 13 18:38:30 2014 -0400

    window: Mark all override-redirect window types as appears-focused

 src/core/window.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 77ded44..5769d8d 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4655,14 +4655,22 @@ meta_window_appears_focused_changed (MetaWindow *window)
 static gboolean
 should_propagate_focus_appearance (MetaWindow *window)
 {
+  /* Parents of attached modal dialogs should appear focused. */
   if (meta_window_is_attached_dialog (window))
     return TRUE;
 
+  /* Parents of these sorts of override-redirect windows should
+   * appear focused. */
   switch (window->type)
     {
     case META_WINDOW_DROPDOWN_MENU:
     case META_WINDOW_POPUP_MENU:
     case META_WINDOW_COMBO:
+    case META_WINDOW_TOOLTIP:
+    case META_WINDOW_NOTIFICATION:
+    case META_WINDOW_COMBO:
+    case META_WINDOW_DND:
+    case META_WINDOW_OVERRIDE_OTHER:
       return TRUE;
     default:
       break;


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