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

AppIcon list moved out of WScreen

The appicon list is moved out of WScreen. The reason is because
the appicon list is used to create and remove icons (appicons, dock,
clip,...) on the screen, but these icons are not associated with the
WScreen. These icons are associated with the Workspace.

If we check the WWorkspace struct we can see that the Clip is inside
this struct. The dock, the background, the workspace name are other
items related to the Workspace, not with the screen.

So, we should take out the appicon from the WScreen. But, what is the
better place to hold it? The workspace? NO!, because the icon list
is common to the all workspaces. Probably the better place is hold
as independent list in the global namespace, so this is my option.

In the next patches we can see that this is the better option, because
we can create the icons, without think where we should paint them.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2013-10-08 00:56:37 +02:00
committed by Carlos R. Mafra
parent 074092f319
commit 4a7daf2322
6 changed files with 21 additions and 22 deletions

View File

@@ -558,6 +558,9 @@ extern struct wmaker_global_variables {
XContext stack;
} context;
/* Application related */
struct WAppIcon *app_icon_list; /* list of all aplication icons */
} w_global;
extern unsigned int ValidModMask;