mirror of
https://github.com/swaywm/sway.git
synced 2025-11-23 06:59:48 -05:00
container: Add container_is_current_floating
Needed to check if containers are currently floating from render code, as container_is_floating checks pending state.
This commit is contained in:
parent
e0a94bee8d
commit
2c917a8c34
3 changed files with 20 additions and 2 deletions
|
|
@ -210,9 +210,16 @@ void container_set_geometry_from_content(struct sway_container *con);
|
|||
/**
|
||||
* Determine if the given container is itself floating.
|
||||
* This will return false for any descendants of a floating container.
|
||||
*
|
||||
* Uses pending container state.
|
||||
*/
|
||||
bool container_is_floating(struct sway_container *container);
|
||||
|
||||
/**
|
||||
* Same as above, but for current container state.
|
||||
*/
|
||||
bool container_is_current_floating(struct sway_container *container);
|
||||
|
||||
/**
|
||||
* Get a container's box in layout coordinates.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue