2010-03-27 15:25:51 +01:00
|
|
|
/*
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _X_H
|
|
|
|
#define _X_H
|
|
|
|
|
2010-07-13 11:35:05 +02:00
|
|
|
/**
|
|
|
|
* Initializes the X11 part for the given container. Called exactly once for
|
|
|
|
* every container from con_new().
|
|
|
|
*
|
|
|
|
*/
|
2010-03-27 15:25:51 +01:00
|
|
|
void x_con_init(Con *con);
|
2010-07-13 11:35:05 +02:00
|
|
|
|
2010-09-01 18:11:01 +02:00
|
|
|
/**
|
|
|
|
* Moves a child window from Container src to Container dest.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void x_move_win(Con *src, Con *dest);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reparents the child window of the given container (necessary for sticky
|
|
|
|
* containers). The reparenting happens in the next call of x_push_changes().
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void x_reparent_child(Con *con, Con *old);
|
|
|
|
|
2010-07-13 11:35:05 +02:00
|
|
|
/**
|
|
|
|
* Re-initializes the associated X window state for this container. You have
|
|
|
|
* to call this when you assign a client to an empty container to ensure that
|
|
|
|
* its state gets updated correctly.
|
|
|
|
*
|
|
|
|
*/
|
2010-04-17 16:41:20 +02:00
|
|
|
void x_reinit(Con *con);
|
2010-07-13 11:35:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Kills the window decoration associated with the given container.
|
|
|
|
*
|
|
|
|
*/
|
2010-03-27 15:25:51 +01:00
|
|
|
void x_con_kill(Con *con);
|
2010-07-13 11:35:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Kills the given X11 window using WM_DELETE_WINDOW (if supported).
|
|
|
|
*
|
|
|
|
*/
|
2010-03-27 15:25:51 +01:00
|
|
|
void x_window_kill(xcb_window_t window);
|
2010-07-13 11:35:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Draws the decoration of the given container onto its parent.
|
|
|
|
*
|
|
|
|
*/
|
2010-03-27 15:25:51 +01:00
|
|
|
void x_draw_decoration(Con *con);
|
2010-07-13 11:35:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Pushes all changes (state of each node, see x_push_node() and the window
|
|
|
|
* stack) to X11.
|
|
|
|
*
|
|
|
|
*/
|
2010-03-27 15:25:51 +01:00
|
|
|
void x_push_changes(Con *con);
|
2010-07-13 11:35:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Raises the specified container in the internal stack of X windows. The
|
|
|
|
* next call to x_push_changes() will make the change visible in X11.
|
|
|
|
*
|
|
|
|
*/
|
2010-03-27 15:25:51 +01:00
|
|
|
void x_raise_con(Con *con);
|
|
|
|
|
|
|
|
#endif
|