Skip to content
Snippets Groups Projects
Commit 0feb29e7 authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

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.
parent 3e7babad
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment