mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Array of workspaces moved to the workspace object in the global namespace
The variable workspaces, that contains the list of workspaces is moved to the global workspace properties. Now the screen is not needed to know the workspaces. The function getWindowState() doesn't need the WScreen argument.
This commit is contained in:
committed by
Carlos R. Mafra
parent
c610b8d7ce
commit
f0c5073600
@@ -760,8 +760,8 @@ static void updateWorkspaceNames(WScreen *scr)
|
||||
pos = buf;
|
||||
len = 0;
|
||||
for (i = 0; i < w_global.workspace.count; i++) {
|
||||
curr_size = strlen(scr->workspaces[i]->name);
|
||||
strcpy(pos, scr->workspaces[i]->name);
|
||||
curr_size = strlen(w_global.workspace.array[i]->name);
|
||||
strcpy(pos, w_global.workspace.array[i]->name);
|
||||
pos += (curr_size + 1);
|
||||
len += (curr_size + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user