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 /sway/config.c | |
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 'sway/config.c')
-rw-r--r-- | sway/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 193cfad2..5501ab31 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "input_state.h" | 22 | #include "input_state.h" |
23 | #include "criteria.h" | 23 | #include "criteria.h" |
24 | #include "input.h" | 24 | #include "input.h" |
25 | #include "border.h" | ||
25 | 26 | ||
26 | struct sway_config *config = NULL; | 27 | struct sway_config *config = NULL; |
27 | 28 | ||
@@ -161,6 +162,7 @@ static void config_defaults(struct sway_config *config) { | |||
161 | config->default_layout = L_NONE; | 162 | config->default_layout = L_NONE; |
162 | config->default_orientation = L_NONE; | 163 | config->default_orientation = L_NONE; |
163 | config->font = strdup("monospace 10"); | 164 | config->font = strdup("monospace 10"); |
165 | config->font_height = get_font_text_height(config->font); | ||
164 | 166 | ||
165 | // Flags | 167 | // Flags |
166 | config->focus_follows_mouse = true; | 168 | config->focus_follows_mouse = true; |