From adcf89cfe49d2feaaea74a55b9b82071254f3987 Mon Sep 17 00:00:00 2001
From: Drew DeVault <sir@cmpwn.com>
Date: Wed, 26 Aug 2015 08:24:23 -0400
Subject: [PATCH] Do not pass modifiers when getting keysyms from wlc

Fixes #124

Keyboard handling can likely be simplified after this change.
---
 sway/handlers.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
 
 	struct sway_mode *mode = config->current_mode;
 
-	uint32_t sym = tolower(wlc_keyboard_get_keysym_for_key(key, modifiers));
+	struct wlc_modifiers no_mods = { 0, 0 };
+	uint32_t sym = tolower(wlc_keyboard_get_keysym_for_key(key, &no_mods));
 
 	int i;