summaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index e7aaffd7..2c7b4c2b 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -76,8 +76,19 @@ struct sway_view {
76 int natural_width, natural_height; 76 int natural_width, natural_height;
77 77
78 char *title_format; 78 char *title_format;
79
80 // Our border types are B_NONE, B_PIXEL, B_NORMAL and B_CSD. We normally
81 // just assign this to the border property and ignore the other two.
82 // However, when a view using CSD is tiled, we want to render our own
83 // borders as well. So in this case the border property becomes one of the
84 // first three, and using_csd is true.
85 // Lastly, views can change their decoration mode at any time. When an SSD
86 // view becomes CSD without our approval, we save the SSD border type so it
87 // can be restored if/when the view returns from CSD to SSD.
79 enum sway_container_border border; 88 enum sway_container_border border;
80 enum sway_container_border saved_border; 89 enum sway_container_border saved_border;
90 bool using_csd;
91
81 int border_thickness; 92 int border_thickness;
82 bool border_top; 93 bool border_top;
83 bool border_bottom; 94 bool border_bottom;