aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 4366a010..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;
@@ -104,7 +106,12 @@ struct sway_container {
bool border_right;
// The gaps currently applied to the container.
- double current_gaps;
+ struct {
+ int top;
+ int right;
+ int bottom;
+ int left;
+ } current_gaps;
struct sway_workspace *workspace; // NULL when hidden in the scratchpad
struct sway_container *parent; // NULL if container in root of workspace
@@ -205,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.