aboutsummaryrefslogtreecommitdiff
path: root/wl.c
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2024-04-25 00:22:01 -0600
committerJack Sangdahl <[email protected]>2024-04-25 00:22:01 -0600
commitd0c0f5247bd11a788b4f173ca6241b51a3adb458 (patch)
tree0ab375ca2626655d62beffd968dc115ed1f93e5f /wl.c
parentf1ab5cd97013b1de4653684ce478cc656801a02d (diff)
downloadst-d0c0f5247bd11a788b4f173ca6241b51a3adb458.tar.gz
st-d0c0f5247bd11a788b4f173ca6241b51a3adb458.zip
tidy some code + scroll patch
Diffstat (limited to 'wl.c')
-rw-r--r--wl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/wl.c b/wl.c
index b063be4..c6b2554 100644
--- a/wl.c
+++ b/wl.c
@@ -1,4 +1,5 @@
-/* See LICENSE for license details. */
+// Copyright 2024 @waffle87
+// SPDX-License-Identifier: MIT/X
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
@@ -621,16 +622,6 @@ char *kmap(xkb_keysym_t k, uint state) {
Key *kp;
int i;
- /* Check for mapped keys out of X11 function keys. */
- for (i = 0; i < LEN(mappedkeys); i++) {
- if (mappedkeys[i] == k)
- break;
- }
- if (i == LEN(mappedkeys)) {
- if ((k & 0xFFFF) < 0xFD00)
- return NULL;
- }
-
for (kp = key; kp < key + LEN(key); kp++) {
if (kp->k != k)
continue;