summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-19 21:14:34 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-19 21:14:34 -0400
commit4db89b5fe46e8e7dc741b0ccb9fa3d0708c6fa59 (patch)
tree14e5c0c3f91fd0e02c127189dd254d8f7042ae3f
parentWhitelist a handful of characters for keys (diff)
downloadsway-4db89b5fe46e8e7dc741b0ccb9fa3d0708c6fa59.tar.gz
sway-4db89b5fe46e8e7dc741b0ccb9fa3d0708c6fa59.tar.zst
sway-4db89b5fe46e8e7dc741b0ccb9fa3d0708c6fa59.zip
Deal with more xkb bullshit
-rw-r--r--sway/handlers.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index d45340ad..63db972e 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -336,9 +336,11 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
336 336
337 struct sway_mode *mode = config->current_mode; 337 struct sway_mode *mode = config->current_mode;
338 338
339 if (!isalnum(sym) && sym != ' ' && sym != XKB_KEY_Escape && sym != XKB_KEY_Tab) { 339 if (sym < 70000 /* bullshit made up number */) {
340 // God fucking dammit 340 if (!isalnum(sym) && sym != ' ' && sym != XKB_KEY_Escape && sym != XKB_KEY_Tab) {
341 return false; 341 // God fucking dammit
342 return false;
343 }
342 } 344 }
343 345
344 // Lowercase if necessary 346 // Lowercase if necessary