diff options
author | sabetts <sabetts> | 2001-08-29 19:55:10 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-08-29 19:55:10 +0000 |
commit | 82038e02ab782ce856d8f66cc0f20a6c8d8fec71 (patch) | |
tree | 215040f4188799d8b1cf73d6d1164b232b4dd985 | |
parent | e10959968f2b03cfc1865ed319336882c1df1c29 (diff) | |
download | ratpoison-82038e02ab782ce856d8f66cc0f20a6c8d8fec71.zip |
unhide bug
-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) |