From bbc87bded623a03ad6df64773d841fe1d099094d Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 25 Nov 2001 09:45:27 +0000 Subject: [PATCH] fixed a bug introduced by the previous commit --- src/window.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/window.c b/src/window.c index 5628480b..bc880b3d 100644 --- a/src/window.c +++ b/src/window.c @@ -1108,12 +1108,13 @@ wManageWindow(WScreen *scr, Window window) /* if the window was set to hidden because it was hidden * in a previous incarnation and that state was restored */ app->flags.hidden = 1; - } - - if (app->flags.hidden) { - /*wwin->flags.hidden = 1;*/ - wUnhideApplication(app, False, False); - raise = True; + } else if (app->flags.hidden) { + if (WFLAGP(app->main_window_desc, start_hidden)) { + wwin->flags.hidden = 1; + } else { + wUnhideApplication(app, False, False); + raise = True; + } } } } -- 2.11.4.GIT