summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-08-19 16:02:25 +0000
committersabetts <sabetts>2001-08-19 16:02:25 +0000
commit0051fb43b7b468621d7826a9dfa54bac147c9a92 (patch)
tree8d7cb6da5f656fdc6a0320d596a5d5e998775b0e /src/list.c
parent42f7ded762267cf4a94e1aef2368b21864969b2d (diff)
downloadratpoison-0051fb43b7b468621d7826a9dfa54bac147c9a92.zip
window switching flicker bug fixed
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/list.c b/src/list.c
index 6c2bd36..b3f97bd 100644
--- a/src/list.c
+++ b/src/list.c
@@ -510,6 +510,12 @@ set_active_window (rp_window *win)
if (last_win) PRINT_DEBUG ("last window: %s\n", last_win->name);
PRINT_DEBUG ("new window: %s\n", win->name);
+ /* Make sure the window comes up full screen */
+ unhide_transient_for (win);
+ maximize (win);
+ unhide_window (win);
+
+ /* Hide the last window and its transients_fors */
if (is_transient_ancestor (win, last_win))
{
/* Do nothing if last_win is a transient since it should stay visible */
@@ -529,11 +535,6 @@ set_active_window (rp_window *win)
}
}
- /* Make sure the window comes up full screen */
- unhide_transient_for (win);
- maximize (win);
- unhide_window (win);
-
give_window_focus (win, last_win);
/* Make sure the program bar is always on the top */