aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index d699b01e..354f2d34 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -1244,13 +1244,9 @@ bool view_is_visible(struct sway_view *view) {
return false;
}
}
- // Determine if view is nested inside a floating container which is sticky
- struct sway_container *floater = view->container;
- while (floater->parent) {
- floater = floater->parent;
- }
- bool is_sticky = container_is_floating(floater) && floater->is_sticky;
- if (!is_sticky && workspace && !workspace_is_visible(workspace)) {
+
+ if (!container_is_sticky_or_child(view->container) && workspace &&
+ !workspace_is_visible(workspace)) {
return false;
}
// Check view isn't in a tabbed or stacked container on an inactive tab