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:
13
src/window.c
13
src/window.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user