mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
Variable current_workspace moved to workspace object in global namespace
The variable current_workspace, that contains the current workspace is moved to the global workspace properties. Now the screen is not needed to know the workspace_count.
This commit is contained in:
committed by
Carlos R. Mafra
parent
e5ae684d02
commit
c610b8d7ce
@@ -316,7 +316,7 @@ void wSessionSaveState(WScreen * scr)
|
||||
WMPutInPLDictionary(scr->session_state, sApplications, list);
|
||||
WMReleasePropList(list);
|
||||
|
||||
wks = WMCreatePLString(scr->workspaces[scr->current_workspace]->name);
|
||||
wks = WMCreatePLString(scr->workspaces[w_global.workspace.current]->name);
|
||||
WMPutInPLDictionary(scr->session_state, sWorkspace, wks);
|
||||
WMReleasePropList(wks);
|
||||
|
||||
@@ -556,6 +556,6 @@ void wSessionRestoreLastWorkspace(WScreen * scr)
|
||||
/* Get the workspace number for the workspace name */
|
||||
w = wGetWorkspaceNumber(scr, value);
|
||||
|
||||
if (w != scr->current_workspace && w < w_global.workspace.count)
|
||||
if (w != w_global.workspace.current && w < w_global.workspace.count)
|
||||
wWorkspaceChange(scr, w);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user