Bugfix: Store dock clients per screen, not per workspace.

This fixes ticket #12
This commit is contained in:
Michael Stapelberg
2009-04-11 14:29:15 +02:00
parent 8cc1fcf536
commit bcbe800720
6 changed files with 12 additions and 8 deletions

View File

@ -143,9 +143,6 @@ struct Workspace {
Client *fullscreen_client;
/* Contains all clients with _NET_WM_WINDOW_TYPE == _NET_WM_WINDOW_TYPE_DOCK */
SLIST_HEAD(dock_clients_head, Client) dock_clients;
/* The focus stack contains the clients in the correct order of focus so that
the focus can be reverted correctly when a client is closed */
SLIST_HEAD(focus_stack_head, Client) focus_stack;
@ -317,6 +314,9 @@ struct Screen {
xcb_window_t bar;
xcb_gcontext_t bargc;
/* Contains all clients with _NET_WM_WINDOW_TYPE == _NET_WM_WINDOW_TYPE_DOCK */
SLIST_HEAD(dock_clients_head, Client) dock_clients;
TAILQ_ENTRY(Screen) screens;
};