diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-04 11:00:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-04 11:00:12 -0400 |
commit | 309fcf23007a7c1b5c1c6da6b5ff7101312488cc (patch) | |
tree | 9e581c403ef8b99df78bddb7e54be856ada4514e /sway/input | |
parent | 6dd3e0caf574ab9c328025489d3ea605fcdd7fc8 (diff) | |
parent | 7797490e9e285589f501e46202df36b6bf8afcfd (diff) |
Merge pull request #2569 from RyanDwyer/deny-reload-repeat
Deny repeating reload by holding key
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/keyboard.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c index 160ef10b..0d2a62b5 100644 --- a/sway/input/keyboard.c +++ b/sway/input/keyboard.c @@ -280,7 +280,10 @@ static void handle_keyboard_key(struct wl_listener *listener, void *data) { if (binding_pressed) { seat_execute_command(seat, binding_pressed); handled = true; - next_repeat_binding = binding_pressed; + + if ((binding_pressed->flags & BINDING_RELOAD) == 0) { + next_repeat_binding = binding_pressed; + } } } |