4 * i3 - an improved dynamic tiling window manager
6 * © 2009 Michael Stapelberg and contributors
8 * See file LICENSE for license information.
20 * Sets the name (or just its number) for the given workspace. This has to
21 * be called for every workspace as the rendering function
22 * (render_internal_bar) relies on workspace->name and workspace->name_len
26 void workspace_set_name(Workspace *ws, const char *name);
29 * Returns true if the workspace is currently visible. Especially important for
30 * multi-monitor environments, as they can have multiple currenlty active
34 bool workspace_is_visible(Workspace *ws);
36 /** Switches to the given workspace */
37 void workspace_show(xcb_connection_t *conn, int workspace);
40 * Initializes the given workspace if it is not already initialized. The given
41 * screen is to be understood as a fallback, if the workspace itself either
42 * was not assigned to a particular screen or cannot be placed there because
43 * the screen is not attached at the moment.
46 void workspace_initialize(Workspace *ws, i3Screen *screen);
49 * Gets the first unused workspace for the given screen, taking into account
50 * the preferred_screen setting of every workspace (workspace assignments).
53 Workspace *get_first_workspace_for_screen(struct screens_head *slist, i3Screen *screen);
56 * Unmaps all clients (and stack windows) of the given workspace.
58 * This needs to be called separately when temporarily rendering a workspace
59 * which is not the active workspace to force reconfiguration of all clients,
60 * like in src/xinerama.c when re-assigning a workspace to another screen.
63 void workspace_unmap_clients(xcb_connection_t *conn, Workspace *u_ws);
66 * Maps all clients (and stack windows) of the given workspace.
69 void workspace_map_clients(xcb_connection_t *conn, Workspace *ws);
72 * Goes through all clients on the given workspace and updates the workspace’s
73 * urgent flag accordingly.
76 void workspace_update_urgent_flag(Workspace *ws);