mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 14:15:46 +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
@@ -133,7 +133,7 @@ void StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next, Bool class_only)
|
||||
|
||||
oldFocused = change_focus_and_raise(newFocused, oldFocused, swpanel, scr, False);
|
||||
} else {
|
||||
if (wwin->frame->workspace == scr->current_workspace)
|
||||
if (wwin->frame->workspace == w_global.workspace.current)
|
||||
newFocused = wwin;
|
||||
else
|
||||
newFocused = NULL;
|
||||
|
||||
Reference in New Issue
Block a user