aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-25 16:39:25 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-25 16:39:25 -0400
commit10eb58667b05a05c17595818cda43ac7a8dc721f (patch)
tree0200d6c35b44398dcebe052f248093576b377e6d
parentMerge pull request #132 from taiyu-len/master (diff)
parentfixed keyboard handling (diff)
downloadsway-10eb58667b05a05c17595818cda43ac7a8dc721f.tar.gz
sway-10eb58667b05a05c17595818cda43ac7a8dc721f.tar.zst
sway-10eb58667b05a05c17595818cda43ac7a8dc721f.zip
Merge pull request #133 from minus7/wlc-keyboard-fix
fixed keyboard handling
-rw-r--r--sway/handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 758af8d6..330f6c0c 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -289,7 +289,7 @@ static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit s
289 289
290 290
291static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers, 291static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers,
292 uint32_t key, uint32_t sym, enum wlc_key_state state) { 292 uint32_t key, enum wlc_key_state state) {
293 293
294 if (locked_view_focus && state == WLC_KEY_STATE_PRESSED) { 294 if (locked_view_focus && state == WLC_KEY_STATE_PRESSED) {
295 return EVENT_PASSTHROUGH; 295 return EVENT_PASSTHROUGH;
@@ -302,7 +302,7 @@ 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 sym = tolower(sym); 305 uint32_t sym = tolower(wlc_keyboard_get_keysym_for_key(key, modifiers));
306 306
307 int i; 307 int i;
308 308