diff options
author | sabetts <sabetts> | 2004-12-09 04:39:21 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2004-12-09 04:39:21 +0000 |
commit | 14a4c1b72eaef4f92ce7276b18587885b0a088cb (patch) | |
tree | 5b8ac4c998de56c73a1656632b0750a6d6d6d29a | |
parent | b3f8ea2cddf277527a0450a6252eb97542e7a3d8 (diff) | |
download | ratpoison-14a4c1b72eaef4f92ce7276b18587885b0a088cb.zip |
*** empty log message ***
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/events.c | 7 |
2 files changed, 10 insertions, 3 deletions
@@ -1,4 +1,8 @@ -2004-12-08 Shawn Betts <katia_dilkina@verizon.net> +2004-12-08 Shawn Betts <sabetts@vcn.bc.ca> + + * src/events.c (destroy_window): make sure the current screen is + the windows screen before calling set_active_frame. + (unmap_notify): likewise * src/actions.c (frestore): use strtok_r. diff --git a/src/events.c b/src/events.c index c7498b1..bb9f2cb 100644 --- a/src/events.c +++ b/src/events.c @@ -109,7 +109,9 @@ unmap_notify (XEvent *ev) if (frame) { cleanup_frame (frame); - if (frame->number == win->scr->current_frame) set_active_frame (frame); + if (frame->number == win->scr->current_frame + && current_screen() == win->scr) + set_active_frame (frame); } withdraw_window (win); @@ -208,7 +210,8 @@ destroy_window (XDestroyWindowEvent *ev) if (frame) { cleanup_frame (frame); - if (frame->number == win->scr->current_frame) + if (frame->number == win->scr->current_frame + && current_screen() == win->scr) set_active_frame (frame); } withdraw_window (win); |