summaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <[email protected]>2016-03-29 14:47:30 +0200
committerMikkel Oscar Lyderik <[email protected]>2016-03-30 00:47:58 +0200
commit5a13cb0ed136906a4370235214601b0129548c49 (patch)
tree51dce6cdcb9bb1ffe27dcdc9a01ca9bda3a7c87a /sway/config.c
parent3b05f92f76c3bd9400320844e485eb06e94772cd (diff)
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.c2
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 @@
#include "input_state.h"
#include "criteria.h"
#include "input.h"
+#include "border.h"
struct sway_config *config = NULL;
@@ -161,6 +162,7 @@ static void config_defaults(struct sway_config *config) {
config->default_layout = L_NONE;
config->default_orientation = L_NONE;
config->font = strdup("monospace 10");
+ config->font_height = get_font_text_height(config->font);
// Flags
config->focus_follows_mouse = true;