summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-26 08:24:23 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-26 08:24:23 -0400
commitadcf89cfe49d2feaaea74a55b9b82071254f3987 (patch)
treee15e4d299b9777c0ee93ea7bdfeb0b3ea7370c30
parentUse C 99 (diff)
downloadsway-adcf89cfe49d2feaaea74a55b9b82071254f3987.tar.gz
sway-adcf89cfe49d2feaaea74a55b9b82071254f3987.tar.zst
sway-adcf89cfe49d2feaaea74a55b9b82071254f3987.zip
Do not pass modifiers when getting keysyms from wlc
Fixes #124 Keyboard handling can likely be simplified after this change.
-rw-r--r--sway/handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 330f6c0c..93b124bd 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -302,7 +302,8 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
302 302
303 struct sway_mode *mode = config->current_mode; 303 struct sway_mode *mode = config->current_mode;
304 304
305 uint32_t sym = tolower(wlc_keyboard_get_keysym_for_key(key, modifiers)); 305 struct wlc_modifiers no_mods = { 0, 0 };
306 uint32_t sym = tolower(wlc_keyboard_get_keysym_for_key(key, &no_mods));
306 307
307 int i; 308 int i;
308 309