aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-05-31 19:03:42 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-06-08 19:01:45 -0400
commited08f2f20cc533716001829398bdad8f0e98049b (patch)
treea61b4e212bcef3383bbe49256cf83f6bccd4e3a4 /include/sway/tree/view.h
parentinput: tweak resize behavior to not change tab focus on border click (diff)
downloadsway-ed08f2f20cc533716001829398bdad8f0e98049b.tar.gz
sway-ed08f2f20cc533716001829398bdad8f0e98049b.tar.zst
sway-ed08f2f20cc533716001829398bdad8f0e98049b.zip
tree/view: fix smart gaps when ancestor container is tabbed or stacked
Fixes #5406.
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 8898cde5..467bf78b 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -239,11 +239,12 @@ uint32_t view_configure(struct sway_view *view, double lx, double ly, int width,
239bool view_inhibit_idle(struct sway_view *view); 239bool view_inhibit_idle(struct sway_view *view);
240 240
241/** 241/**
242 * Whether or not the view is the only visible view in its tree. If the view 242 * Whether or not this view's most distant ancestor (possibly itself) is the
243 * is tiling, there may be floating views. If the view is floating, there may 243 * only visible node in its tree. If the view is tiling, there may be floating
244 * be tiling views or views in a different floating container. 244 * views. If the view is floating, there may be tiling views or views in a
245 * different floating container.
245 */ 246 */
246bool view_is_only_visible(struct sway_view *view); 247bool view_ancestor_is_only_visible(struct sway_view *view);
247 248
248/** 249/**
249 * Configure the view's position and size based on the container's position and 250 * Configure the view's position and size based on the container's position and