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:
Nikos Ntarmos 2008-01-17 19:35:14 +02:00 committed by Julien Danjou
parent b3f1b213a6
commit a1437fb66c
1 changed files with 8 additions and 1 deletions

9
ewmh.c
View File

@ -239,9 +239,16 @@ ewmh_process_state_atom(Client *c, Atom state, int set)
else if(state == net_wm_state_skip_taskbar)
{
if(set == _NET_WM_STATE_REMOVE)
{
c->skiptb = False;
c->border = c->oldborder;
}
else if(set == _NET_WM_STATE_ADD)
{
c->skiptb = True;
c->oldborder = c->border;
c->border = 0;
}
}
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);
client_resize(c, geometry, False);
XRaiseWindow(globalconf.display, c->win);
arrange(c->screen);
}
arrange(c->screen);
}
static void