summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index eff38ea..416b63f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -468,8 +468,12 @@ set_active_window (rp_window *win)
/* Make sure the window comes up full screen */
maximize (win);
- unhide_window (win);
+ /* Focus the window. */
+ give_window_focus (win, last_win);
+
+ /* The other windows in the frame will be hidden if this window
+ doesn't qualify as a transient window (ie dialog box. */
#ifdef MAXSIZE_WINDOWS_ARE_TRANSIENTS
if (!win->transient
&& !(win->hints->flags & PMaxSize
@@ -480,8 +484,6 @@ set_active_window (rp_window *win)
#endif
hide_others(win);
- give_window_focus (win, last_win);
-
/* Make sure the program bar is always on the top */
update_window_names (win->scr);