aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-08 12:38:57 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-08 12:38:57 +0200
commit650bcffe0c735d08679801b680909fdf42b4da78 (patch)
tree1633a318d5144c1b26f04eea9d7d6080ba0068df /monsterwm.c
parent85a7c7b31b5da31ffe870594bc1bf3ecf498ea4c (diff)
if no client, there should be no active window either
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c2
1 files changed, 1 insertions, 1 deletions
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) {