diff options
| -rw-r--r-- | monsterwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c index 19a8908..e656ab3 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -343,10 +343,10 @@ void configurerequest(XEvent *e) { XSync(dis, False); } tile(); - update_current(c?c:current); + if (c && c == current) update_current(c); } -/* send the given event - WM_DELETE_WINDOW for now */ +/* close the window */ void deletewindow(Window w) { XEvent ev; ev.type = ClientMessage; |
