1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

- Mapping a new window that belongs to a running application that is hidden,

will unhide the application.
- removed a wsyserror() message when reading a property list from file
  (the programmer should decide if to give that message or just ignore).
This commit is contained in:
dan
2001-11-24 05:10:38 +00:00
parent 06b48596f5
commit 81a1f98ca5
4 changed files with 19 additions and 5 deletions

View File

@@ -566,6 +566,7 @@ wManageWindow(WScreen *scr, Window window)
int workspace = -1;
char *title;
Bool withdraw = False;
Bool raise = False;
/* mutex. */
/* XGrabServer(dpy); */
@@ -1110,7 +1111,9 @@ wManageWindow(WScreen *scr, Window window)
}
if (app->flags.hidden) {
wwin->flags.hidden = 1;
/*wwin->flags.hidden = 1;*/
wUnhideApplication(app, False, False);
raise = True;
}
}
}
@@ -1183,7 +1186,7 @@ wManageWindow(WScreen *scr, Window window)
DoWindowBirth(wwin);
}
wWindowMap(wwin);
wWindowMap(wwin);
}
/* setup stacking descriptor */
@@ -1215,6 +1218,12 @@ wManageWindow(WScreen *scr, Window window)
wwin->prev = NULL;
}
/* raise is set to true if we un-hid the app when this window was born.
* we raise, else old windows of this app will be above this new one. */
if (raise) {
wRaiseFrame(wwin->frame->core);
}
/* Update name must come after WApplication stuff is done */
wWindowUpdateName(wwin, title);
if (title)