372 bool dont_warp,
bool ignore_focus);
char * con_get_tree_representation(Con *con)
Create a string representing the subtree under con.
void con_move_to_workspace(Con *con, Con *workspace, bool fix_coordinates, bool dont_warp, bool ignore_focus)
Moves the given container to the currently focused container on the given workspace.
bool con_move_to_target(Con *con, Con *target)
bool con_move_to_mark(Con *con, const char *mark)
Moves the given container to the given mark.
bool con_move_to_output_name(Con *con, const char *name, bool fix_coordinates)
Moves the given container to the currently focused container on the visible workspace on the output s...
Con * con_get_fullscreen_con(Con *con, fullscreen_mode_t fullscreen_mode)
Returns the first fullscreen node below this node.
void con_set_urgency(Con *con, bool urgent)
Set urgency flag to the container, all the parent containers and the workspace.
bool con_is_floating(Con *con)
Returns true if the node is floating.
bool con_inside_stacked_or_tabbed(Con *con)
Returns true if the container is within any stacked/tabbed split container.
Con * con_for_window(Con *con, i3Window *window, Match **store_match)
Returns the first container below 'con' which wants to swallow this window TODO: priority.
void con_close(Con *con, kill_window_t kill_window)
Closes the given container.
orientation_t con_orientation(Con *con)
Returns the orientation of the given container (for stacked containers, vertical orientation is used ...
void con_force_split_parents_redraw(Con *con)
force parent split containers to be redrawn
void con_unmark(Con *con, const char *name)
Removes marks from containers.
bool con_has_managed_window(Con *con)
Returns true when this con is a leaf node with a managed X11 window (e.g., excluding dock containers)
Con * con_descend_direction(Con *con, direction_t direction)
Returns the leftmost, rightmost, etc.
void con_update_parents_urgency(Con *con)
Make all parent containers urgent if con is urgent or clear the urgent flag of all parent containers ...
Con * con_new(Con *parent, i3Window *window)
A wrapper for con_new_skeleton, to retain the old con_new behaviour.
bool con_is_hidden(Con *con)
This will only return true for containers which have some parent with a tabbed / stacked parent of wh...
Con * con_get_workspace(Con *con)
Gets the workspace container this node is on.
bool con_find_transient_for_window(Con *start, xcb_window_t target)
Start from a container and traverse the transient_for linked list.
bool con_is_split(Con *con)
Returns true if a container should be considered split.
bool con_has_children(Con *con)
Returns true if this node has regular or floating children.
bool con_is_maximized(Con *con, orientation_t orientation)
Returns true if the container is maximized in the given orientation.
Con * con_descend_tiling_focused(Con *con)
Returns the focused con inside this client, descending the tree as far as possible.
void con_disable_fullscreen(Con *con)
Disables fullscreen mode for the given container, if necessary.
bool con_is_docked(Con *con)
Returns true if the container is a docked container.
void con_set_border_style(Con *con, border_style_t border_style, int border_width)
Sets the given border style on con, correctly keeping the position/size of a floating window.
int con_num_visible_children(Con *con)
Returns the number of visible non-floating children of this container.
Con * con_by_con_id(long target)
Returns the container with the given container ID or NULL if no such container exists.
Con * con_new_skeleton(Con *parent, i3Window *window)
Create a new container (and attach it to the given parent, if not NULL).
void con_mark(Con *con, const char *mark, mark_mode_t mode)
Assigns a mark to the container.
Con * con_by_window_id(xcb_window_t window)
Returns the container with the given client window ID or NULL if no such container exists.
void con_activate_unblock(Con *con)
Activates the container like in con_activate but removes fullscreen restrictions and properly warps t...
Con * con_by_mark(const char *mark)
Returns the container with the given mark or NULL if no such container exists.
Rect con_border_style_rect(Con *con)
Returns a "relative" Rect which contains the amount of pixels that need to be added to the original R...
Con * con_get_fullscreen_covering_ws(Con *ws)
Returns the fullscreen node that covers the given workspace if it exists.
void con_mark_toggle(Con *con, const char *mark, mark_mode_t mode)
Toggles the mark on a container.
Con * con_inside_floating(Con *con)
Checks if the given container is either floating or inside some floating container.
bool con_fullscreen_permits_focusing(Con *con)
Returns true if changing the focus to con would be allowed considering the fullscreen focus constrain...
bool con_swap(Con *first, Con *second)
Swaps the two containers.
bool con_accepts_window(Con *con)
Returns true if this node accepts a window (if the node swallows windows, it might already have swall...
uint32_t con_rect_size_in_orientation(Con *con)
Returns given container's rect size depending on its orientation.
bool con_is_internal(Con *con)
Returns true if the container is internal, such as __i3_scratch.
bool con_exists(Con *con)
Returns true if the given container (still) exists.
void con_detach(Con *con)
Detaches the given container from its current parent.
void con_move_to_output(Con *con, Output *output, bool fix_coordinates)
Moves the given container to the currently focused container on the visible workspace on the given ou...
void set_focus_order(Con *con, Con **focus_order)
Clear the container's focus stack and re-add it using the provided container array.
int con_border_style(Con *con)
Use this function to get a container’s border style.
void con_toggle_fullscreen(Con *con, int fullscreen_mode)
Toggles fullscreen mode for the given container.
void con_fix_percent(Con *con)
Updates the percent attribute of the children of the given container.
void con_attach(Con *con, Con *parent, bool ignore_focus)
Attaches the given container to the given parent.
Rect con_minimum_size(Con *con)
Determines the minimum size of the given con by looking at its children (for split/stacked/tabbed con...
i3String * con_parse_title_format(Con *con)
Returns the window title considering the current title format.
bool con_inside_focused(Con *con)
Checks if the given container is inside a focused container.
void con_free(Con *con)
Frees the specified container.
void con_merge_into(Con *old, Con *new)
Merges container specific data that should move with the window (e.g.
Con * con_by_frame_id(xcb_window_t frame)
Returns the container with the given frame ID or NULL if no such container exists.
bool con_is_leaf(Con *con)
Returns true when this node is a leaf node (has no children)
int con_num_children(Con *con)
Returns the number of children of this container.
adjacent_t con_adjacent_borders(Con *con)
Returns adjacent borders of the window.
void con_set_layout(Con *con, layout_t layout)
This function changes the layout of a given container.
void con_activate(Con *con)
Sets input focus to the given container and raises it to the top.
Con * con_parent_with_orientation(Con *con, orientation_t orientation)
Searches parents of the given 'con' until it reaches one with the specified 'orientation'.
bool con_draw_decoration_into_frame(Con *con)
Returns whether the window decoration (title bar) should be drawn into the X11 frame window of this c...
void con_toggle_layout(Con *con, const char *toggle_mode)
This function toggles the layout of a given container.
bool con_has_mark(Con *con, const char *mark)
Returns true if and only if the given containers holds the mark.
Con * con_next_focused(Con *con)
Returns the container which will be focused next when the given container is not available anymore.
bool con_has_urgent_child(Con *con)
Checks if the given container has an urgent child.
void con_enable_fullscreen(Con *con, fullscreen_mode_t fullscreen_mode)
Enables fullscreen mode for the given container, if necessary.
bool con_has_parent(Con *con, Con *parent)
Checks if the container has the given parent as an actual parent.
int con_num_windows(Con *con)
Count the number of windows (i.e., leaf containers).
void con_focus(Con *con)
Sets input focus to the given container.
Con * con_get_output(Con *con)
Gets the output container (first container with CT_OUTPUT in hierarchy) this node is on.
Con * con_descend_focused(Con *con)
Returns the focused con inside this client, descending the tree as far as possible.
bool con_is_sticky(Con *con)
Returns whether the container or any of its children is sticky.
Con ** get_focus_order(Con *con)
Iterate over the container's focus stack and return an array with the containers inside it,...
layout_t
Container layouts.
adjacent_t
describes if the window is adjacent to the output (physical screen) edges.
fullscreen_mode_t
Fullscreen modes.
kill_window_t
parameter to specify whether tree_close_internal() and x_window_kill() should kill only this specific...
struct _i3String i3String
Opaque data structure for storing strings.
Stores a rectangle, for example the size of a window, the child window etc.
An Output is a physical output on your graphics driver.
A 'Window' is a type which contains an xcb_window_t and all the related information (hints like _NET_...
A "match" is a data structure which acts like a mask or expression to match certain windows or not.
A 'Con' represents everything from the X11 root window down to a single X11 window.