1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 21:38:00 +01:00

Fixed problem with kcalc not having a miniaturize button

This commit is contained in:
dan
2002-01-04 00:30:11 +00:00
parent 365556b676
commit a8c7375623
6 changed files with 30 additions and 32 deletions

View File

@@ -333,8 +333,9 @@ wSessionSaveState(WScreen *scr)
while (wwin) {
WApplication *wapp=wApplicationOf(wwin->main_window);
if (wwin->transient_for==None
&& WMGetFirstInArray(wapp_list, wapp)==WANotFound
if ((wwin->transient_for==None
|| wwin->transient_for==wwin->screen_ptr->root_win)
&& WMGetFirstInArray(wapp_list, wapp)==WANotFound
&& !WFLAGP(wwin, dont_save_session)) {
/* A entry for this application was not yet saved. Save one. */
if ((win_info = makeWindowState(wwin, wapp))!=NULL) {