sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 10eb58667b05a05c17595818cda43ac7a8dc721f
parent 77dcf70a9b9037f7582718c37b4dff04324d8c7a
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 25 Aug 2015 16:39:25 -0400

Merge pull request #133 from minus7/wlc-keyboard-fix

fixed keyboard handling
Diffstat:
Msway/handlers.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 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; @@ -302,7 +302,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;