[metacity] window: mark all override-redirect window types as appears-focused
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: mark all override-redirect window types as appears-focused
- Date: Sun, 12 Mar 2017 19:37:29 +0000 (UTC)
commit 79555c65ed5841c23444a75784f4e6eb9101db60
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 | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index ff94f13..787fae0 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -5832,15 +5832,24 @@ 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_DND:
+ case META_WINDOW_OVERRIDE_OTHER:
return TRUE;
+
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]