From a1437fb66cced8381280b6d0b7c1639a86273990 Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Thu, 17 Jan 2008 19:35:14 +0200 Subject: [PATCH] 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. --- ewmh.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ewmh.c b/ewmh.c index 247c9f6fa..4369e150f 100644 --- a/ewmh.c +++ b/ewmh.c @@ -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