24 #define NET_WM_DESKTOP_NONE 0xFFFFFFF0
25 #define NET_WM_DESKTOP_ALL 0xFFFFFFFF
149 void workspace_assign_to(Workspace *ws,
Output *screen,
bool hide_it);
158 void workspace_initialize(Workspace *ws,
Output *screen,
bool recheck);
165 Workspace *get_first_workspace_for_output(
Output *screen);
175 void workspace_unmap_clients(xcb_connection_t *
conn, Workspace *u_ws);
181 void workspace_map_clients(xcb_connection_t *
conn, Workspace *ws);
xcb_connection_t * conn
XCB connection and root screen.
Con * workspace_encapsulate(Con *ws)
Creates a new container and re-parents all of children from the given workspace into it.
void workspace_show(Con *ws)
Switches to the given workspace.
bool output_triggers_assignment(Output *output, struct Workspace_Assignment *assignment)
Returns true if the first output assigned to a workspace with the given workspace assignment is the s...
Con * get_existing_workspace_by_num(int num)
Returns the workspace with the given number or NULL if such a workspace does not exist.
Con * create_workspace_on_output(Output *output, Con *content)
Returns a pointer to a new workspace in the given output.
Con * workspace_next_on_output(void)
Returns the next workspace on the same output.
void workspace_update_urgent_flag(Con *ws)
Goes through all clients on the given workspace and updates the workspace’s urgent flag accordingly.
Con * workspace_back_and_forth_get(void)
Returns the previously focused workspace con, or NULL if unavailable.
Con * get_existing_workspace_by_name(const char *name)
Returns the workspace with the given name or NULL if such a workspace does not exist.
bool workspace_is_visible(Con *ws)
Returns true if the workspace is currently visible.
Con * workspace_attach_to(Con *ws)
Called when a new con (with a window, not an empty or split con) should be attached to the workspace ...
Con * workspace_prev(void)
Returns the previous workspace.
void workspace_back_and_forth(void)
Focuses the previously focused workspace.
void workspace_move_to_output(Con *ws, Output *output)
Move the given workspace to the specified output.
Con * workspace_prev_on_output(void)
Returns the previous workspace on the same output.
void extract_workspace_names_from_bindings(void)
Extracts workspace names from keybindings (e.g.
void ws_force_orientation(Con *ws, orientation_t orientation)
'Forces' workspace orientation by moving all cons into a new split-con with the same orientation as t...
Con * workspace_next(void)
Returns the next workspace.
void workspace_show_by_name(const char *num)
Looks up the workspace by name and switches to it.
char * previous_workspace_name
Stores a copy of the name of the last used workspace for the workspace back-and-forth switching.
Con * workspace_get(const char *num, bool *created)
Returns a pointer to the workspace with the given number (starting at 0), creating the workspace if n...
Stores which workspace (by name or number) goes to which output and its gaps config.
An Output is a physical output on your graphics driver.
A 'Con' represents everything from the X11 root window down to a single X11 window.