mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +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
@@ -1761,7 +1761,7 @@ static void menuMouseDown(WObjDescriptor * desc, XEvent * event)
|
||||
char *name;
|
||||
int number = entry_no - 3; /* Entries "New", "Destroy Last" and "Last Used" appear before workspaces */
|
||||
|
||||
name = wstrdup(scr->workspaces[number]->name);
|
||||
name = wstrdup(w_global.workspace.array[number]->name);
|
||||
snprintf(buffer, sizeof(buffer), _("Type the name for workspace %i:"), number + 1);
|
||||
|
||||
wMenuUnmap(scr->root_menu);
|
||||
|
||||
Reference in New Issue
Block a user