diff options
author | sabetts <sabetts> | 2001-08-20 18:28:22 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-08-20 18:28:22 +0000 |
commit | 5e7dd7abb7dde043100815c99b038dffd462bad9 (patch) | |
tree | 3d47092d90c4249943683fb00ef0e9ceb394a201 | |
parent | 0051fb43b7b468621d7826a9dfa54bac147c9a92 (diff) | |
download | ratpoison-5e7dd7abb7dde043100815c99b038dffd462bad9.zip |
fixed maximize bug in clean_frame
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/events.c | 12 |
2 files changed, 12 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2001-08-20 Shawn <sabetts@hotdog> + + * src/events.c (cleanup_frame): set the new window's frame before + maximizing it. + 2001-08-19 Shawn <sabetts@hotdog> * src/events.c (cleanup_frame): unhide the new active window diff --git a/src/events.c b/src/events.c index 16739f9..1cdbb21 100644 --- a/src/events.c +++ b/src/events.c @@ -66,20 +66,22 @@ cleanup_frame (rp_window_frame *frame) win = find_window_other (); if (win) { + rp_window *last_win; + last_win = frame->win; + frame->win = win; + maximize (win); unhide_transient_for (win); unhide_window (win); - if (is_transient_ancestor (frame->win, win)) + if (is_transient_ancestor (last_win, win)) { - hide_transient_for_between (frame->win, win); + hide_transient_for_between (last_win, win); } else { - hide_transient_for (frame->win); + hide_transient_for (last_win); } - - frame->win = win; } else { |