don't draw the border of skip'ed windows
Teaching ewmh_process_window_state_atom(...) to clear the border for windows that are to be skipped from the taskbar, much like skip'ed windows.
This commit is contained in:
parent
b3f1b213a6
commit
a1437fb66c
9
ewmh.c
9
ewmh.c
|
@ -239,9 +239,16 @@ ewmh_process_state_atom(Client *c, Atom state, int set)
|
||||||
else if(state == net_wm_state_skip_taskbar)
|
else if(state == net_wm_state_skip_taskbar)
|
||||||
{
|
{
|
||||||
if(set == _NET_WM_STATE_REMOVE)
|
if(set == _NET_WM_STATE_REMOVE)
|
||||||
|
{
|
||||||
c->skiptb = False;
|
c->skiptb = False;
|
||||||
|
c->border = c->oldborder;
|
||||||
|
}
|
||||||
else if(set == _NET_WM_STATE_ADD)
|
else if(set == _NET_WM_STATE_ADD)
|
||||||
|
{
|
||||||
c->skiptb = True;
|
c->skiptb = True;
|
||||||
|
c->oldborder = c->border;
|
||||||
|
c->border = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if(state == net_wm_state_fullscreen)
|
else if(state == net_wm_state_fullscreen)
|
||||||
{
|
{
|
||||||
|
@ -268,8 +275,8 @@ ewmh_process_state_atom(Client *c, Atom state, int set)
|
||||||
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
|
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
|
||||||
client_resize(c, geometry, False);
|
client_resize(c, geometry, False);
|
||||||
XRaiseWindow(globalconf.display, c->win);
|
XRaiseWindow(globalconf.display, c->win);
|
||||||
arrange(c->screen);
|
|
||||||
}
|
}
|
||||||
|
arrange(c->screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue