mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Variable last_workspace moved to workspace object in global namespace
The variable last_workspace, that contains the last used workspace is moved to the global workspace properties. Now the screen is not needed to know the workspace_count. The variable name is changed to workspace.last_used because a similar variable name is also in the WApplication struct.
This commit is contained in:
committed by
Carlos R. Mafra
parent
9e103a46e9
commit
e5ae684d02
@@ -1578,7 +1578,7 @@ static void handleKeyPress(XEvent * event)
|
||||
wWorkspaceRelativeChange(scr, -1);
|
||||
break;
|
||||
case WKBD_LASTWORKSPACE:
|
||||
wWorkspaceChange(scr, scr->last_workspace);
|
||||
wWorkspaceChange(scr, w_global.workspace.last_used);
|
||||
break;
|
||||
|
||||
case WKBD_MOVE_WORKSPACE1 ... WKBD_MOVE_WORKSPACE10:
|
||||
@@ -1598,7 +1598,7 @@ static void handleKeyPress(XEvent * event)
|
||||
break;
|
||||
case WKBD_MOVE_LASTWORKSPACE:
|
||||
if (wwin)
|
||||
wWindowChangeWorkspace(wwin, scr->last_workspace);
|
||||
wWindowChangeWorkspace(wwin, w_global.workspace.last_used);
|
||||
break;
|
||||
|
||||
case WKBD_MOVE_NEXTWSLAYER:
|
||||
|
||||
Reference in New Issue
Block a user