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

Varible session_state moved to global namespace

The variable session_state, defined in screen.h (WScreen), is moved to
the global variable w_global.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2013-10-08 00:56:42 +02:00
committed by Carlos R. Mafra
parent d27ce03780
commit 40e1ea08b8
7 changed files with 44 additions and 44 deletions

View File

@@ -827,7 +827,7 @@ void wWorkspaceSaveState(WScreen * scr, WMPropList * old_state)
WMAddToPLArray(parr, wks_state);
WMReleasePropList(wks_state);
}
WMPutInPLDictionary(scr->session_state, dWorkspaces, parr);
WMPutInPLDictionary(w_global.session_state, dWorkspaces, parr);
WMReleasePropList(parr);
}
@@ -838,10 +838,10 @@ void wWorkspaceRestoreState(WScreen *scr)
make_keys();
if (scr->session_state == NULL)
if (w_global.session_state == NULL)
return;
parr = WMGetFromPLDictionary(scr->session_state, dWorkspaces);
parr = WMGetFromPLDictionary(w_global.session_state, dWorkspaces);
if (!parr)
return;