Implement 'fullscreen global'

This commit is contained in:
Michael Stapelberg
2011-06-10 18:27:20 +02:00
parent bef25d72aa
commit fb9d77305e
13 changed files with 79 additions and 41 deletions

View File

@ -53,7 +53,7 @@ Con *con_parent_with_orientation(Con *con, orientation_t orientation);
* Returns the first fullscreen node below this node.
*
*/
Con *con_get_fullscreen_con(Con *con);
Con *con_get_fullscreen_con(Con *con, int fullscreen_mode);
/**
* Returns true if the node is floating.
@ -126,7 +126,7 @@ void con_fix_percent(Con *con);
* entered when there already is a fullscreen container on this workspace.
*
*/
void con_toggle_fullscreen(Con *con);
void con_toggle_fullscreen(Con *con, int fullscreen_mode);
/**
* Moves the given container to the currently focused container on the given

View File

@ -18,7 +18,7 @@ extern struct all_cons_head all_cons;
* assigning a workspace to each RandR output.
*
*/
void tree_init();
void tree_init(xcb_get_geometry_reply_t *geometry);
/**
* Opens an empty container in the current container
@ -77,7 +77,7 @@ bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent);
* Loads tree from ~/.i3/_restart.json (used for in-place restarts).
*
*/
bool tree_restore(const char *path);
bool tree_restore(const char *path, xcb_get_geometry_reply_t *geometry);
/**
* tree_flatten() removes pairs of redundant split containers, e.g.: