summaryrefslogtreecommitdiff
path: root/src/netwm.c
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2017-03-06 16:24:51 +0100
committerOlivier Fourdan <fourdan@xfce.org>2017-03-06 16:24:51 +0100
commit0feb29e78bb3b36387950dc2fb8d991ac875a374 (patch)
treec54dceac0306b845da6976dd7ecd31591b7a79f2 /src/netwm.c
parent3e7babad026e4d2ef6140bdb3d57b04c35695305 (diff)
downloadxfwm4-0feb29e78bb3b36387950dc2fb8d991ac875a374.tar.gz
netwm: Make docks and spash screens appear focused
The panel is a dock window, and may appear differently as it is not focused by default by the window manager. 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.
Diffstat (limited to 'src/netwm.c')
-rw-r--r--src/netwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netwm.c b/src/netwm.c
index f779bc80b..e8a0bda69 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -130,7 +130,7 @@ clientSetNetState (Client * c)
TRACE ("clientSetNetState : demands_attention");
data[i++] = display_info->atoms[NET_WM_STATE_DEMANDS_ATTENTION];
}
- if (c == clientGetFocus ())
+ if (c == clientGetFocus () || c->type & WINDOW_TYPE_STATE_FOCUSED)
{
TRACE ("clientSetNetState : focused");
data[i++] = display_info->atoms[NET_WM_STATE_FOCUSED];