summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/manage.c b/src/manage.c
index e60c422..b0f6ee3 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -541,13 +541,17 @@ void
unhide_window (rp_window *win)
{
if (win == NULL) return;
+
+ /* Always raise the window. */
+ XRaiseWindow (dpy, win->w);
+
if (win->state != IconicState) return;
- XMapRaised (dpy, win->w);
+ XMapWindow (dpy, win->w);
set_state (win, NormalState);
}
-/* same as unhide_window except that it make sure the window is mapped
+/* same as unhide_window except that it makes sure the window is mapped
on the bottom of the window stack. */
void
unhide_window_below (rp_window *win)