----- Rodolfo García Peñas (kix) <[email protected]> a écrit : > 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. > > Signed-off-by: Rodolfo García Peñas (kix) <[email protected]> > --- > [...] > > diff --git a/src/workspace.h b/src/workspace.h > index 13bb02b..5fcbe9b 100644 > --- a/src/workspace.h > +++ b/src/workspace.h > @@ -30,6 +29,7 @@ typedef struct WWorkspace { > > typedef struct WWorkspace_info { > /* Workspace stuff */ > + struct WWorkspace **workspaces; /* workspace array */ > int workspace_count; /* number of workspaces */ > int current_workspace; /* current workspace number */ > int last_used_workspace; /* last used workspace number */ > --
Maybe: w_global.workspace.array But I'm not totally convinced about this one. Although it's probably a good idea to take the array outside the screen, the array may deserve a variable for itself: extern struct WWorkspace **g_workspace_array; or maybe not? I'll let other people advise here... -- To unsubscribe, send mail to [email protected].
