about summary refs log tree commit diff
path: root/keyboard.c
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-01-20 20:45:48 -0500
committerZach DeCook <zachdecook@librem.one>2022-01-20 20:45:48 -0500
commit7bcdc772c34b8e606d5355e8729e8a6236741dbe (patch)
treebd78f9c0625fcf889740ea99fbd3a43d20506d23 /keyboard.c
parent1ae1ac8ccd79716830f911fd97438d99d17998b2 (diff)
downloadsuggpicker-7bcdc772c34b8e606d5355e8729e8a6236741dbe.tar.gz
input event codes: don't use
Diffstat (limited to 'keyboard.c')
-rw-r--r--keyboard.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/keyboard.c b/keyboard.c
index 85f412f..ee50827 100644
--- a/keyboard.c
+++ b/keyboard.c
@@ -1,4 +1,3 @@
-#include <linux/input-event-codes.h>
 #include <stdio.h>
 #include <sys/mman.h>
 #include "keyboard.h"
@@ -162,11 +161,7 @@ kbd_draw_layout(struct kbd *kb) {
 			next_key++;
 			continue;
 		}
-		if (next_key->type == Mod && kb->mods & next_key->code) {
-			kbd_draw_key(kb, next_key, Press);
-		} else {
-			kbd_draw_key(kb, next_key, Unpress);
-		}
+		kbd_draw_key(kb, next_key, Unpress);
 		next_key++;
 	}
 }