diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/events.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/events.c b/src/events.c index 9960e5a..488ef93 100644 --- a/src/events.c +++ b/src/events.c @@ -93,8 +93,11 @@ unmap_notify (XEvent *ev) /* If the window was inside a frame, fill the frame with another window. */ frame = find_windows_frame (win); - if (frame) cleanup_frame (frame); - if (frame->number == win->scr->current_frame) set_active_frame (frame); + if (frame) + { + cleanup_frame (frame); + if (frame->number == win->scr->current_frame) set_active_frame (frame); + } withdraw_window (win); break; @@ -175,7 +178,6 @@ destroy_window (XDestroyWindowEvent *ev) ignore_badwindow++; unmanage (win); - ignore_badwindow--; } |