summaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-11-17 11:04:34 -0500
committerGitHub <[email protected]>2018-11-17 11:04:34 -0500
commiteda3bfeed5097c71634332bfe998188b028abf02 (patch)
treea5fb241142cf6815a8fce76eb9b5faf101d69ff9 /include/sway/tree/container.h
parenta5cdc293dc8ae6759bd627aaf60d35d9eb4efb04 (diff)
parentbe9348d25c9556bdabb83d964a8761f920fc4a11 (diff)
Merge pull request #3142 from RyanDwyer/move-view-properties
Move view {x,y,width,height} into container struct
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index d3155eb3..f907aad2 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -41,8 +41,8 @@ enum wlr_direction;
struct sway_container_state {
// Container properties
enum sway_container_layout layout;
- double con_x, con_y;
- double con_width, con_height;
+ double x, y;
+ double width, height;
bool is_fullscreen;
@@ -60,9 +60,8 @@ struct sway_container_state {
bool border_left;
bool border_right;
- // View properties
- double view_x, view_y;
- double view_width, view_height;
+ double content_x, content_y;
+ double content_width, content_height;
};
struct sway_container {
@@ -89,6 +88,9 @@ struct sway_container {
double saved_x, saved_y;
double saved_width, saved_height;
+ double content_x, content_y;
+ int content_width, content_height;
+
bool is_fullscreen;
enum sway_container_border border;
@@ -210,7 +212,7 @@ void container_init_floating(struct sway_container *container);
void container_set_floating(struct sway_container *container, bool enable);
-void container_set_geometry_from_floating_view(struct sway_container *con);
+void container_set_geometry_from_content(struct sway_container *con);
/**
* Determine if the given container is itself floating.