summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/events.c12
2 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 405b357..79d599c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
{