about summary refs log tree commit diff
path: root/keyboard.c
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-01-21 17:41:20 -0500
committerZach DeCook <zachdecook@librem.one>2022-01-21 17:41:20 -0500
commitd169f66b57b8567ec06ada3b79d4163d48603d02 (patch)
tree8b3cb16a5047836912d3d4bfac76c18fb668c8f5 /keyboard.c
parent6e16e55851b472513b3869e8af757c7e4fbc131f (diff)
downloadsuggpicker-d169f66b57b8567ec06ada3b79d4163d48603d02.tar.gz
layout: Remove layout file
Diffstat (limited to 'keyboard.c')
-rw-r--r--keyboard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboard.c b/keyboard.c
index 540f6c9..bfebdbe 100644
--- a/keyboard.c
+++ b/keyboard.c
@@ -4,7 +4,7 @@
 #include "drw.h"
 #include "os-compatibility.h"
 
-#define MAX_LAYERS 25
+#define KBD_KEY_BORDER 1
 
 /* lazy die macro */
 #define die(...)                                                               \
@@ -147,12 +147,12 @@ kbd_resize(struct kbd *kb) {
 void
 draw_inset(struct drwsurf *ds, uint32_t x, uint32_t y, uint32_t width,
            uint32_t height, uint32_t border, Color color) {
-	drw_fill_rectangle(ds, color, x + border, y + border, width - border,
-	                   height - border);
+	drw_fill_rectangle(ds, color, x + border, y + border, width - (border*2),
+	                   height - (border*2));
 }
 void
 draw_over_inset(struct drwsurf *ds, uint32_t x, uint32_t y, uint32_t width,
                 uint32_t height, uint32_t border, Color color) {
-	drw_over_rectangle(ds, color, x + border, y + border, width - border,
-	                   height - border);
+	drw_over_rectangle(ds, color, x + border, y + border, width - (border*2),
+	                   height - (border*2));
 }