aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-06-11 11:03:43 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-11 11:03:43 +1000
commit9e96cfd310c4e5dc60f07d772e60b139ff7dc448 (patch)
tree9961c8705208b2f127133f0533bd305a6f75015e /include/sway/tree
parentbb66e6d578fdc68fb33d0fde921390d74f20bb31 (diff)
parent867fb6aedbbe4cd1c7f4817848682609e8489880 (diff)
downloadsway-9e96cfd310c4e5dc60f07d772e60b139ff7dc448.tar.xz
Merge remote-tracking branch 'upstream/master' into atomic
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/arrange.h6
-rw-r--r--include/sway/tree/container.h12
-rw-r--r--include/sway/tree/layout.h1
3 files changed, 19 insertions, 0 deletions
diff --git a/include/sway/tree/arrange.h b/include/sway/tree/arrange.h
index 897a9392..6c8c0dba 100644
--- a/include/sway/tree/arrange.h
+++ b/include/sway/tree/arrange.h
@@ -4,6 +4,12 @@
struct sway_container;
+// Remove gaps around container
+void remove_gaps(struct sway_container *c);
+
+// Add gaps around container
+void add_gaps(struct sway_container *c);
+
/**
* Arrange layout for all the children of the given container, and add them to
* the given transaction.
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index a8efd893..f4e978ea 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -60,6 +60,11 @@ struct sway_container_state {
double swayc_x, swayc_y;
double swayc_width, swayc_height;
+ bool has_gaps;
+ double current_gaps;
+ double gaps_inner;
+ double gaps_outer;
+
//struct sway_container *parent;
//list_t *children;
@@ -112,6 +117,13 @@ struct sway_container {
double saved_x, saved_y;
double saved_width, saved_height;
+ // The gaps currently applied to the container.
+ double current_gaps;
+
+ bool has_gaps;
+ double gaps_inner;
+ double gaps_outer;
+
list_t *children;
struct sway_container *parent;
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h
index cd131056..ba265623 100644
--- a/include/sway/tree/layout.h
+++ b/include/sway/tree/layout.h
@@ -28,6 +28,7 @@ struct sway_root {
struct wl_listener output_layout_change;
struct wl_list xwayland_unmanaged; // sway_xwayland_unmanaged::link
+ struct wl_list drag_icons; // sway_drag_icon::link
struct wlr_texture *debug_tree;