From 742d1764a6fb1fb9269dc9ffe08319da98f4d7b8 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Mon, 1 Oct 2018 09:41:15 -0400 Subject: Fix smart gaps --- include/sway/tree/view.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index d10251dd..56ccbc6c 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h @@ -255,6 +255,13 @@ void view_get_constraints(struct sway_view *view, double *min_width, uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, int height); +/** + * Whether or not the view is the only visible view in its tree. If the view + * is tiling, there may be floating views. If the view is floating, there may + * be tiling views or views in a different floating container. + */ +bool view_is_only_visible(struct sway_view *view); + /** * Configure the view's position and size based on the container's position and * size, taking borders into consideration. -- cgit v1.2.3-54-g00ecf