diff options
author | nicm <nicm> | 2017-04-21 14:01:19 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-04-21 14:01:19 +0000 |
commit | bba588752f8085da13edcacd71101055bd617303 (patch) | |
tree | b75e32cccebefb24cda475bed163f613a2994548 /server-client.c | |
parent | 311dad8c28c8c1a842beb3dbb1757064b9d83b2e (diff) | |
download | rtmux-bba588752f8085da13edcacd71101055bd617303.tar.gz rtmux-bba588752f8085da13edcacd71101055bd617303.tar.bz2 rtmux-bba588752f8085da13edcacd71101055bd617303.zip |
Store state shared between multiple commands in the queue in a shared
structure.
Diffstat (limited to 'server-client.c')
-rw-r--r-- | server-client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server-client.c b/server-client.c index 41135c00..93d4bffc 100644 --- a/server-client.c +++ b/server-client.c @@ -908,7 +908,8 @@ retry: * non-repeating binding was found, stop repeating and try * again in the root table. */ - if ((c->flags & CLIENT_REPEAT) && !bd->can_repeat) { + if ((c->flags & CLIENT_REPEAT) && + (~bd->flags & KEY_BINDING_REPEAT)) { server_client_set_key_table(c, NULL); c->flags &= ~CLIENT_REPEAT; server_status_client(c); @@ -926,7 +927,7 @@ retry: * the client back to the root table. */ xtimeout = options_get_number(s->options, "repeat-time"); - if (xtimeout != 0 && bd->can_repeat) { + if (xtimeout != 0 && (bd->flags & KEY_BINDING_REPEAT)) { c->flags |= CLIENT_REPEAT; tv.tv_sec = xtimeout / 1000; |