summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.h2
-rw-r--r--src/netwm.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h
index 7aa93f37d..3b2d6f26f 100644
--- a/src/client.h
+++ b/src/client.h
@@ -206,6 +206,8 @@
WINDOW_UTILITY)
#define WINDOW_TYPE_DONT_FOCUS (WINDOW_SPLASHSCREEN | \
WINDOW_DOCK)
+#define WINDOW_TYPE_STATE_FOCUSED (WINDOW_SPLASHSCREEN | \
+ WINDOW_DOCK )
/* Which bits of opacity are applied */
#define OPACITY_MOVE (1<<0)
diff --git a/src/netwm.c b/src/netwm.c
index ef3552ce1..9ef8f73f4 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];