----- Rodolfo García Peñas (kix) <k...@kix.es> a écrit :
> 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.
> 
> Signed-off-by: Rodolfo García Peñas (kix) <k...@kix.es>
> ---
>  [...]
> diff --git a/src/workspace.h b/src/workspace.h
> index 68cd275..48d05e9 100644
> --- a/src/workspace.h
> +++ b/src/workspace.h
> @@ -30,6 +30,7 @@ typedef struct WWorkspace {
>  
>  typedef struct WWorkspace_info {
>       /* Workspace stuff */
> +     int workspace_count;            /* number of workspaces */
>       WMFont *workspace_name_font;
>  } WWorkspace_info;


Hi,
Similar to previous proposal, this would make this variable:
  w_global.workspace.count

making it clear that it is a global variable, are reducing information 
duplication.


--
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to