summary refs log tree commit diff
path: root/keyboard.c
diff options
context:
space:
mode:
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));
 }