diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/manage.c | 8 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2001-08-29 Shawn <sabetts@hotdog> + + * src/manage.c (unhide_window): always raise the window. + 2001-08-27 Shawn <sabetts@hotdog> * src/actions.c (cmd_clock): pad the time with spaces on either 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) |