1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 05:18:06 +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

@@ -2273,7 +2273,7 @@ void wMenuSaveState(WScreen * scr)
if (save_menus) {
key = WMCreatePLString("Menus");
WMPutInPLDictionary(scr->session_state, key, menus);
WMPutInPLDictionary(w_global.session_state, key, menus);
WMReleasePropList(key);
}
WMReleasePropList(menus);
@@ -2476,12 +2476,11 @@ void wMenuRestoreState(WScreen * scr)
{
WMPropList *menus, *menu, *key, *skey;
if (!scr->session_state) {
if (!w_global.session_state)
return;
}
key = WMCreatePLString("Menus");
menus = WMGetFromPLDictionary(scr->session_state, key);
menus = WMGetFromPLDictionary(w_global.session_state, key);
WMReleasePropList(key);
if (!menus)