1
0
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:
Rodolfo García Peñas (kix)
2013-10-08 00:56:30 +02:00
committed by Carlos R. Mafra
parent f60e65001b
commit 9e103a46e9
13 changed files with 87 additions and 87 deletions

View File

@@ -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];