1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Variable last_workspace moved to workspace object in global namespace

The variable last_workspace, that contains the last used workspace
is moved to the global workspace properties.

Now the screen is not needed to know the workspace_count.

The variable name is changed to workspace.last_used because a similar
variable name is also in the WApplication struct.
This commit is contained in:
Rodolfo García Peñas (kix)
2013-10-08 00:56:31 +02:00
committed by Carlos R. Mafra
parent 9e103a46e9
commit e5ae684d02
5 changed files with 9 additions and 10 deletions

View File

@@ -484,6 +484,7 @@ extern struct wmaker_global_variables {
/* Workspace related */
struct {
int count; /* number of workspaces */
int last_used; /* last used workspace number */
WMFont *font_for_name; /* used during workspace switch */
} workspace;