summaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2018-10-08 23:00:36 +1000
committerRyan Dwyer <[email protected]>2018-10-08 23:00:36 +1000
commitf23588de3c7085830614f6764a5c0cd262538afd (patch)
tree6460aecbaf206dffcc4ffb546c4a8143025b82db /sway/tree/view.c
parent832ebc896655cb5ca7689559d4e42b426d764e71 (diff)
Introduce container_is_transient_for
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index edf771c1..b107d871 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -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;
}
}