summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-04-23 17:05:41 +0200
committerlukefromdc <[email protected]>2019-04-23 18:39:30 +0000
commit399303b604ada334aeecc4e866dd5ecf2ebca336 (patch)
tree5d5fe0a040a0b05a87b3aaf2f5b553280ea82c70 /src
parentb445ffd18323e2b256c2bf7dc3b079e44c475e8a (diff)
downloadmarco-399303b604ada334aeecc4e866dd5ecf2ebca336.tar.bz2
marco-399303b604ada334aeecc4e866dd5ecf2ebca336.tar.xz
window: make docks and spashscreens appear focused
Set the NET_WM_STATE_FOCUSED property on windows of type dock or spashscreen so that they don't get the state GTK_STATE_FLAG_BACKDROP set by default. Based on: https://gitlab.gnome.org/GNOME/metacity/commit/b3ef887 origin xfwm4 commit: https://git.xfce.org/xfce/xfwm4/commit/?id=0feb29e78bb3
Diffstat (limited to 'src')
-rw-r--r--src/core/window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 0a2582e9..b9261d32 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -8664,7 +8664,15 @@ meta_window_appears_focused (MetaWindow *window)
meta_window_foreach_transient (window, transient_has_focus, &focus);
return focus;
}
- return window->has_focus;
+
+ if (window->has_focus)
+ return TRUE;
+
+ if (window->type == META_WINDOW_DOCK ||
+ window->type == META_WINDOW_SPLASHSCREEN)
+ return TRUE;
+
+ return FALSE;
}
gboolean