diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-29 14:47:30 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-30 00:47:58 +0200 |
commit | 5a13cb0ed136906a4370235214601b0129548c49 (patch) | |
tree | 51dce6cdcb9bb1ffe27dcdc9a01ca9bda3a7c87a /include/container.h | |
parent | Add border <none|normal|toggle|pixel> config (diff) | |
download | sway-5a13cb0ed136906a4370235214601b0129548c49.tar.gz sway-5a13cb0ed136906a4370235214601b0129548c49.tar.zst sway-5a13cb0ed136906a4370235214601b0129548c49.zip |
Implement borders
The borders are implemented as a surface/buffer attached to each view
which is sent to and rendered by wlc in the view_pre_render callback.
All the drawing logic is handled in sway/border.c and all the logic for
calculating the geometry of the border/view is handled in
`update_geometry` in sway/layout.c (same place as gaps are calculated).
Diffstat (limited to 'include/container.h')
-rw-r--r-- | include/container.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/container.h b/include/container.h index 07514c8a..26da851e 100644 --- a/include/container.h +++ b/include/container.h | |||
@@ -115,15 +115,16 @@ struct sway_container { | |||
115 | * If this container's children include a fullscreen view, this is that view. | 115 | * If this container's children include a fullscreen view, this is that view. |
116 | */ | 116 | */ |
117 | struct sway_container *fullscreen; | 117 | struct sway_container *fullscreen; |
118 | /** | 118 | /** |
119 | * If this container is a view, this may be set to the window's decoration | 119 | * If this container is a view, this may be set to the window's decoration |
120 | * buffer (or NULL). | 120 | * buffer (or NULL). |
121 | */ | 121 | */ |
122 | unsigned char *border; | 122 | unsigned char *border; |
123 | enum swayc_border_types border_type; | 123 | enum swayc_border_types border_type; |
124 | struct wlc_geometry border_geometry; | 124 | struct wlc_geometry border_geometry; |
125 | struct wlc_geometry presumed_geometry; | 125 | struct wlc_geometry title_bar_geometry; |
126 | int border_thickness; | 126 | struct wlc_geometry actual_geometry; |
127 | int border_thickness; | ||
127 | }; | 128 | }; |
128 | 129 | ||
129 | enum visibility_mask { | 130 | enum visibility_mask { |