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:
committed by
Carlos R. Mafra
parent
d27ce03780
commit
40e1ea08b8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user