mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Introduce container_is_transient_for
This commit is contained in:
parent
832ebc8966
commit
f23588de3c
7 changed files with 30 additions and 37 deletions
|
|
@ -1212,3 +1212,10 @@ struct sway_container *container_split(struct sway_container *child,
|
|||
|
||||
return cont;
|
||||
}
|
||||
|
||||
bool container_is_transient_for(struct sway_container *child,
|
||||
struct sway_container *ancestor) {
|
||||
return config->popup_during_fullscreen == POPUP_SMART &&
|
||||
child->view && ancestor->view &&
|
||||
view_is_transient_for(child->view, ancestor->view);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue