diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-06-30 19:50:30 +0300 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-07-20 18:52:16 +0300 |
| commit | fdaab55052eb25591e8736bb7f1fccff97d0d4e7 (patch) | |
| tree | ba371f868e9985ac9ca0c6f4d88989e6a7ef3114 /monsterwm.c | |
| parent | e66d2f29bc5b29ceb88904fa693df2754a88220a (diff) | |
rework unmapnotify function - negate return conditional
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c index af40066..6ac0dab 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -862,9 +862,8 @@ void tile(void) { /* windows that request to unmap should lose their * client, so no invisible windows exist on screen */ void unmapnotify(XEvent *e) { - Client *c = NULL; - if (!e->xunmap.send_event || !(c = wintoclient(e->xunmap.window))) return; - else { removeclient(c); desktopinfo(); } + Client *c = wintoclient(e->xunmap.window); + if (e->xunmap.send_event && c) { removeclient(c); desktopinfo(); } } /* find to which client the given window belongs to */ |
