135 | 135 |
*/
|
136 | 136 |
Con *workspace_back_and_forth_get(void);
|
137 | 137 |
|
138 | |
#if 0
|
139 | |
/**
|
140 | |
* Assigns the given workspace to the given screen by correctly updating its
|
141 | |
* state and reconfiguring all the clients on this workspace.
|
142 | |
*
|
143 | |
* This is called when initializing a screen and when re-assigning it to a
|
144 | |
* different screen which just got available (if you configured it to be on
|
145 | |
* screen 1 and you just plugged in screen 1).
|
146 | |
*
|
147 | |
*/
|
148 | |
void workspace_assign_to(Workspace *ws, Output *screen, bool hide_it);
|
149 | |
|
150 | |
/**
|
151 | |
* Initializes the given workspace if it is not already initialized. The given
|
152 | |
* screen is to be understood as a fallback, if the workspace itself either
|
153 | |
* was not assigned to a particular screen or cannot be placed there because
|
154 | |
* the screen is not attached at the moment.
|
155 | |
*
|
156 | |
*/
|
157 | |
void workspace_initialize(Workspace *ws, Output *screen, bool recheck);
|
158 | |
|
159 | |
/**
|
160 | |
* Gets the first unused workspace for the given screen, taking into account
|
161 | |
* the preferred_screen setting of every workspace (workspace assignments).
|
162 | |
*
|
163 | |
*/
|
164 | |
Workspace *get_first_workspace_for_output(Output *screen);
|
165 | |
|
166 | |
/**
|
167 | |
* Unmaps all clients (and stack windows) of the given workspace.
|
168 | |
*
|
169 | |
* This needs to be called separately when temporarily rendering a workspace
|
170 | |
* which is not the active workspace to force reconfiguration of all clients,
|
171 | |
* like in src/xinerama.c when re-assigning a workspace to another screen.
|
172 | |
*
|
173 | |
*/
|
174 | |
void workspace_unmap_clients(xcb_connection_t *conn, Workspace *u_ws);
|
175 | |
|
176 | |
/**
|
177 | |
* Maps all clients (and stack windows) of the given workspace.
|
178 | |
*
|
179 | |
*/
|
180 | |
void workspace_map_clients(xcb_connection_t *conn, Workspace *ws);
|
181 | |
#endif
|
182 | |
|
183 | 138 |
/**
|
184 | 139 |
* Goes through all clients on the given workspace and updates the workspace’s
|
185 | 140 |
* urgent flag accordingly.
|