aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-01 01:03:41 +0100
committerGitHub <noreply@github.com>2018-11-01 01:03:41 +0100
commit480b03b734e6d1d068859b254d8ace4fb07b2c54 (patch)
tree131faacd2b7c36e37444441cb0fd719c00818486 /include/sway/tree/container.h
parent35fda6765b154c1824b3e347579b9d41b309212c (diff)
parent528c7495bb09e18a8b63e1c741b90f65ff5541c6 (diff)
Merge pull request #3040 from RyanDwyer/border-props-to-container
Move view border properties to container struct
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 1dd23341..c0c803f1 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -53,16 +53,16 @@ struct sway_container_state {
struct sway_container *focused_inactive_child;
bool focused;
- // View properties
- double view_x, view_y;
- double view_width, view_height;
-
enum sway_container_border border;
int border_thickness;
bool border_top;
bool border_bottom;
bool border_left;
bool border_right;
+
+ // View properties
+ double view_x, view_y;
+ double view_width, view_height;
};
struct sway_container {
@@ -91,6 +91,18 @@ struct sway_container {
bool is_fullscreen;
+ enum sway_container_border border;
+
+ // Used when the view changes to CSD unexpectedly. This will be a non-B_CSD
+ // border which we use to restore when the view returns to SSD.
+ enum sway_container_border saved_border;
+
+ int border_thickness;
+ bool border_top;
+ bool border_bottom;
+ bool border_left;
+ bool border_right;
+
// The gaps currently applied to the container.
double current_gaps;