summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/manage.c b/src/manage.c
index 434f698..c1113d9 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -523,9 +523,13 @@ void
unhide_below_window (rp_window *win)
{
if (win == NULL) return;
- if (win->state != IconicState) return;
+ /* Always lower the window, but if its not iconic we don't need to
+ map it since it already is mapped. */
XLowerWindow (dpy, win->w);
+
+ if (win->state != IconicState) return;
+
XMapWindow (dpy, win->w);
set_state (win, NormalState);
}