From 82038e02ab782ce856d8f66cc0f20a6c8d8fec71 Mon Sep 17 00:00:00 2001 From: sabetts Date: Wed, 29 Aug 2001 19:55:10 +0000 Subject: unhide bug --- src/manage.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/manage.c') 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) -- cgit v1.2.3