mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-27 00:42:32 +01:00
Variable workspace_count moved to the workspace object in the global namespace
The variable workspace_count, that contains the number of workspaces 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
f60e65001b
commit
9e103a46e9
@@ -221,7 +221,7 @@ static void updateWorkspaceMenu(WMenu * menu)
|
||||
WMenuEntry *entry;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < scr->workspace_count; i++) {
|
||||
for (i = 0; i < w_global.workspace.count; i++) {
|
||||
if (i < menu->entry_no) {
|
||||
|
||||
entry = menu->entries[i];
|
||||
|
||||
Reference in New Issue
Block a user