Implement stacking
This commit is contained in:
@ -164,6 +164,21 @@ struct Client {
|
||||
SLIST_ENTRY(Client) dock_clients;
|
||||
};
|
||||
|
||||
/*
|
||||
* Contains data for the windows needed to draw the titlebars on in stacking mode
|
||||
*
|
||||
*/
|
||||
struct Stack_Window {
|
||||
xcb_window_t window;
|
||||
xcb_gcontext_t gc;
|
||||
uint32_t width, height;
|
||||
|
||||
/* Backpointer to the container this stack window is in */
|
||||
Container *container;
|
||||
|
||||
SLIST_ENTRY(Stack_Window) stack_windows;
|
||||
};
|
||||
|
||||
/*
|
||||
* A container is either in default or stacking mode. It sits inside the table.
|
||||
*
|
||||
@ -186,6 +201,9 @@ struct Container {
|
||||
float width_factor;
|
||||
float height_factor;
|
||||
|
||||
/* When in stacking mode, we draw the titlebars of each client onto a separate window */
|
||||
struct Stack_Window stack_win;
|
||||
|
||||
/* Backpointer to the workspace this container is in */
|
||||
Workspace *workspace;
|
||||
|
||||
|
Reference in New Issue
Block a user