summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/manage.c b/src/manage.c
index 11fbfd9..e611b1f 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -515,6 +515,20 @@ unhide_window (rp_window *win)
set_state (win, NormalState);
}
+/* same as unhide_window except that it make sure the window is mapped
+ on the bottom of the window stack. */
+void
+unhide_below_window (rp_window *win)
+{
+ if (win == NULL) return;
+ if (win->state != IconicState) return;
+
+ XLowerWindow (dpy, win->w);
+ XMapWindow (dpy, win->w);
+ set_state (win, NormalState);
+}
+
+
void
withdraw_window (rp_window *win)
{