diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/events.c | 8 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,7 @@ +2003-04-10 Shawn Betts <sabetts@sfu.ca> + + * src/events.c (unmap_notify): fix crash bug in NormalState case. + 2003-04-09 Shawn Betts <sabetts@sfu.ca> * configure.in (TERM_PROG): Add doc string 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--; } |