mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Replace is_floating boolean with function
This commit is contained in:
parent
34f35f0bad
commit
aaba7642b3
12 changed files with 44 additions and 36 deletions
|
|
@ -76,8 +76,6 @@ struct sway_container {
|
|||
enum sway_container_layout layout;
|
||||
enum sway_container_layout prev_layout;
|
||||
|
||||
// Saves us from searching the list of children/floating in the parent
|
||||
bool is_floating;
|
||||
bool is_sticky;
|
||||
|
||||
// For C_ROOT, this has no meaning
|
||||
|
|
@ -243,8 +241,14 @@ void container_set_floating(struct sway_container *container, bool enable);
|
|||
void container_set_geometry_from_view(struct sway_container *container);
|
||||
|
||||
/**
|
||||
* Determine if the given container is itself floating or has a floating
|
||||
* ancestor.
|
||||
* Determine if the given container is itself floating.
|
||||
* This will return false for any descendants of a floating container.
|
||||
*/
|
||||
bool container_is_floating(struct sway_container *container);
|
||||
|
||||
/**
|
||||
* Determine if the given container is itself floating or is a child of a
|
||||
* floating container.
|
||||
*/
|
||||
bool container_self_or_parent_floating(struct sway_container *container);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue