mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Fix crash when showing scratchpad hidden split containers
This commit is contained in:
parent
18507e62fd
commit
d88d4bbd9d
4 changed files with 15 additions and 1 deletions
|
|
@ -1527,3 +1527,10 @@ void container_raise_floating(struct sway_container *con) {
|
|||
bool container_is_scratchpad_hidden(struct sway_container *con) {
|
||||
return con->scratchpad && !con->workspace;
|
||||
}
|
||||
|
||||
bool container_is_scratchpad_hidden_or_child(struct sway_container *con) {
|
||||
while (con->parent) {
|
||||
con = con->parent;
|
||||
}
|
||||
return con->scratchpad && !con->workspace;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue