kill_window_t
parameter to specify whether tree_close_internal() and x_window_kill() should kill only this specific...
void x_con_init(Con *con)
Initializes the X11 part for the given container.
void x_move_win(Con *src, Con *dest)
Moves a child window from Container src to Container dest.
void x_deco_recurse(Con *con)
Recursively calls x_draw_decoration.
xcb_window_t focused_id
Stores the X11 window ID of the currently focused window.
void update_shmlog_atom(void)
Set up the SHMLOG_PATH atom.
void x_reparent_child(Con *con, Con *old)
Reparents the child window of the given container (necessary for sticky containers).
void x_con_reframe(Con *con)
void x_set_warp_to(Rect *rect)
Set warp_to coordinates.
void x_reinit(Con *con)
Re-initializes the associated X window state for this container.
void x_window_kill(xcb_window_t window, kill_window_t kill_window)
Kills the given X11 window using WM_DELETE_WINDOW (if supported).
void x_raise_con(Con *con)
Raises the specified container in the internal stack of X windows.
void x_set_name(Con *con, const char *name)
Sets the WM_NAME property (so, no UTF8, but used only for debugging anyways) of the given name.
void x_draw_decoration(Con *con)
Draws the decoration of the given container onto its parent.
void x_push_node(Con *con)
This function pushes the properties of each node of the layout tree to X11 if they have changed (like...
void x_set_i3_atoms(void)
Sets up i3 specific atoms (I3_SOCKET_PATH and I3_CONFIG_PATH)
void x_mask_event_mask(uint32_t mask)
Applies the given mask to the event mask of every i3 window decoration X11 window.
void x_push_changes(Con *con)
Pushes all changes (state of each node, see x_push_node() and the window stack) to X11.
void x_con_kill(Con *con)
Kills the window decoration associated with the given container.
bool window_supports_protocol(xcb_window_t window, xcb_atom_t atom)
Returns true if the client supports the given protocol atom (like WM_DELETE_WINDOW)
void x_set_shape(Con *con, xcb_shape_sk_t kind, bool enable)
Enables or disables nonrectangular shape of the container frame.
Stores a rectangle, for example the size of a window, the child window etc.
A 'Con' represents everything from the X11 root window down to a single X11 window.