mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Allow containers to be fullscreen
This commit is contained in:
parent
c8dc9b3b30
commit
27a20a4884
18 changed files with 226 additions and 156 deletions
|
|
@ -60,6 +60,8 @@ struct sway_container_state {
|
|||
double swayc_x, swayc_y;
|
||||
double swayc_width, swayc_height;
|
||||
|
||||
bool is_fullscreen;
|
||||
|
||||
bool has_gaps;
|
||||
double current_gaps;
|
||||
double gaps_inner;
|
||||
|
|
@ -74,7 +76,6 @@ struct sway_container_state {
|
|||
// View properties
|
||||
double view_x, view_y;
|
||||
double view_width, view_height;
|
||||
bool is_fullscreen;
|
||||
|
||||
enum sway_container_border border;
|
||||
int border_thickness;
|
||||
|
|
@ -84,7 +85,7 @@ struct sway_container_state {
|
|||
bool border_right;
|
||||
|
||||
// Workspace properties
|
||||
struct sway_view *ws_fullscreen;
|
||||
struct sway_container *ws_fullscreen;
|
||||
struct sway_container *ws_floating;
|
||||
};
|
||||
|
||||
|
|
@ -124,6 +125,8 @@ struct sway_container {
|
|||
double saved_x, saved_y;
|
||||
double saved_width, saved_height;
|
||||
|
||||
bool is_fullscreen;
|
||||
|
||||
// The gaps currently applied to the container.
|
||||
double current_gaps;
|
||||
|
||||
|
|
@ -335,4 +338,20 @@ bool container_has_urgent_child(struct sway_container *container);
|
|||
*/
|
||||
void container_end_mouse_operation(struct sway_container *container);
|
||||
|
||||
void container_set_fullscreen(struct sway_container *container, bool enable);
|
||||
|
||||
/**
|
||||
* Return true if the container is fullscreen, or a child of a fullscreen split
|
||||
* container.
|
||||
*/
|
||||
bool container_is_fullscreen_or_child(struct sway_container *container);
|
||||
|
||||
/**
|
||||
* Wrap the children of parent in a new container. The new container will be the
|
||||
* only child of parent.
|
||||
*
|
||||
* The new container is returned.
|
||||
*/
|
||||
struct sway_container *container_wrap_children(struct sway_container *parent);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue