summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-06-15 01:06:05 +0000
committersabetts <sabetts>2003-06-15 01:06:05 +0000
commitcc235641d918fab43e11138d43bce425ab244643 (patch)
treec41fa3792b5276675cd7e1555e708835aa284618 /src/window.c
parentc4e54a43ebdc057068966daf9b04223b502a1253 (diff)
downloadratpoison-cc235641d918fab43e11138d43bce425ab244643.zip
(set_active_window): remove duplicate call to
unhide_window, it is made in give_window_focus. Call give_window_focus before calling hide_others.
Diffstat (limited to 'src/window.c')
-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);