From 650bcffe0c735d08679801b680909fdf42b4da78 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Sun, 8 Jan 2012 12:38:57 +0200 Subject: if no client, there should be no active window either --- monsterwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monsterwm.c b/monsterwm.c index 8f905f8..1133f34 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -683,7 +683,7 @@ void togglepanel() { } void update_current(void) { - if (!current) return; + if (!current) { XDeleteProperty(dis, root, netatoms[NET_ACTIVE]); return; } int border_width = (!head->next || head->next->istransient || mode == MONOCLE) ? 0 : BORDER_WIDTH; for (client *c=head; c; c=c->next) { -- cgit v1.3.1