mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -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
|
|
@ -1044,10 +1044,8 @@ bool view_is_visible(struct sway_view *view) {
|
|||
!container_is_fullscreen_or_child(view->container)) {
|
||||
// However, if we're transient for the fullscreen view and we allow
|
||||
// "popups" during fullscreen then it might be visible
|
||||
bool is_transient = config->popup_during_fullscreen == POPUP_SMART &&
|
||||
workspace->fullscreen->view &&
|
||||
view_is_transient_for(view, workspace->fullscreen->view);
|
||||
if (!is_transient) {
|
||||
if (!container_is_transient_for(view->container,
|
||||
workspace->fullscreen)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue