summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-04-23 17:05:41 +0200
committerraveit65 <[email protected]>2019-04-24 14:22:36 +0200
commit6a18687be0037b1a203c1e8630918f1143fbbe6a (patch)
treebb4c1dd0eb2c0e4952d906035e3350d4733859c2 /src/core
parentc1353b06a432a2abf89b952bb6b041a2a44ab0ea (diff)
downloadmarco-6a18687be0037b1a203c1e8630918f1143fbbe6a.tar.bz2
marco-6a18687be0037b1a203c1e8630918f1143fbbe6a.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/core')
-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 485afbc1..af028c3e 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -8662,7 +8662,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