diff options
author | sabetts <sabetts> | 2003-04-10 19:28:58 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-04-10 19:28:58 +0000 |
commit | 8313f4587c369d9862e9eb1a31a671181c402029 (patch) | |
tree | f44bd9e0a31cc537a31cc35b3feb9878ab972196 /src/events.c | |
parent | a70ebaf426cc94a6832e7f9eb6335012af595f0a (diff) | |
download | ratpoison-8313f4587c369d9862e9eb1a31a671181c402029.zip |
(unmap_notify): fix crash bug in NormalState case.
Diffstat (limited to 'src/events.c')
-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--; } |