diff options
author | 2015-08-16 13:26:41 -0400 | |
---|---|---|
committer | 2015-08-16 13:26:41 -0400 | |
commit | 5ff71c2d5ca7fd64b9be37e3548ac70ba1a4ef1c (patch) | |
tree | 2fdf78be10e8b4be99efa81e6706272f7545a491 /sway | |
parent | Set C_OUTPUT name to name from wlc (diff) | |
download | sway-5ff71c2d5ca7fd64b9be37e3548ac70ba1a4ef1c.tar.gz sway-5ff71c2d5ca7fd64b9be37e3548ac70ba1a4ef1c.tar.zst sway-5ff71c2d5ca7fd64b9be37e3548ac70ba1a4ef1c.zip |
Fix key handling from wlc
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 15dd1b77..d843f44b 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -136,7 +136,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier | |||
136 | enum { QSIZE = 32 }; | 136 | enum { QSIZE = 32 }; |
137 | static uint8_t head = 0; | 137 | static uint8_t head = 0; |
138 | static uint32_t array[QSIZE]; | 138 | static uint32_t array[QSIZE]; |
139 | bool cmd_success = true; | 139 | bool cmd_success = false; |
140 | 140 | ||
141 | struct sway_mode *mode = config->current_mode; | 141 | struct sway_mode *mode = config->current_mode; |
142 | // Lowercase if necessary | 142 | // Lowercase if necessary |
@@ -186,7 +186,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier | |||
186 | } | 186 | } |
187 | } | 187 | } |
188 | if (state == WLC_KEY_STATE_PRESSED) { | 188 | if (state == WLC_KEY_STATE_PRESSED) { |
189 | cmd_success = !handle_command(config, binding->command); | 189 | cmd_success = handle_command(config, binding->command); |
190 | } else if (state == WLC_KEY_STATE_RELEASED) { | 190 | } else if (state == WLC_KEY_STATE_RELEASED) { |
191 | // TODO: --released | 191 | // TODO: --released |
192 | } | 192 | } |