aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
authorRyan Dwyer <RyanDwyer@users.noreply.github.com>2018-10-02 08:57:55 +1000
committerGitHub <noreply@github.com>2018-10-02 08:57:55 +1000
commitb542c5413efdbbe0bbf3be0196fe566b8c6bb07f (patch)
tree6b9f56b3700dda60efdaff4446fc684009490b5b /include/sway/tree/view.h
parent9956a1a9ab7141da813e8db63adb7b800958400b (diff)
parent82559c16c701aa912b341ecbbd116c2992c5e698 (diff)
Merge pull request #2739 from RedSoxFan/fix-2653
Fix smart gaps
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -256,6 +256,13 @@ 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.
*/