aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminus <minus@mnus.de>2015-08-25 22:38:16 +0200
committerminus <minus@mnus.de>2015-08-25 22:38:16 +0200
commitbfdff821c3509ca7f76b68f98a23e80d24bd08d8 (patch)
tree417322fc589d685bfeed59095a8c57f535da6a01
parent0bf380a0b1a83f49e2e33066ab6504d308dcec89 (diff)
fixed keyboard handling
handle_key does not get the keysym from wlc anymore
-rw-r--r--sway/handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 4d1dc56c..5624124f 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -296,7 +296,7 @@ static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit s
static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers,
- uint32_t key, uint32_t sym, enum wlc_key_state state) {
+ uint32_t key, enum wlc_key_state state) {
if (locked_view_focus && state == WLC_KEY_STATE_PRESSED) {
return EVENT_PASSTHROUGH;
@@ -309,7 +309,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
struct sway_mode *mode = config->current_mode;
- sym = tolower(sym);
+ uint32_t sym = tolower(wlc_keyboard_get_keysym_for_key(key, modifiers));
int i;