summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-11-07 10:02:39 +0000
committerThomas Adam <thomas@xteddy.org>2018-11-07 10:02:39 +0000
commit4efba0bf9f387a0bce7d8b804710d3a4bf35077e (patch)
treea0ff189619ed22c606b3ced2d78274b16d0552aa /server-client.c
parentff77010f709da6c23475ffb2129f9d60a102218a (diff)
parent0c7f64458fe97f51373775bb0fed01c183bac45b (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/server-client.c b/server-client.c
index 410b8c02..9495f003 100644
--- a/server-client.c
+++ b/server-client.c
@@ -1020,6 +1020,7 @@ table_changed:
}
flags = c->flags;
+try_again:
/* Log key table. */
if (wp == NULL)
log_debug("key table %s (no pane)", table->name);
@@ -1028,7 +1029,6 @@ table_changed:
if (c->flags & CLIENT_REPEAT)
log_debug("currently repeating");
-try_again:
/* Try to see if there is a key binding in the current table. */
bd = key_bindings_get(table, key0);
if (bd != NULL) {
@@ -1039,10 +1039,12 @@ try_again:
*/
if ((c->flags & CLIENT_REPEAT) &&
(~bd->flags & KEY_BINDING_REPEAT)) {
+ log_debug("found in key table %s (not repeating)",
+ table->name);
server_client_set_key_table(c, NULL);
+ first = table = c->keytable;
c->flags &= ~CLIENT_REPEAT;
server_status_client(c);
- table = c->keytable;
goto table_changed;
}
log_debug("found in key table %s", table->name);
@@ -1092,10 +1094,13 @@ try_again:
log_debug("not found in key table %s", table->name);
if (!server_client_is_default_key_table(c, table) ||
(c->flags & CLIENT_REPEAT)) {
+ log_debug("trying in root table");
server_client_set_key_table(c, NULL);
+ table = c->keytable;
+ if (c->flags & CLIENT_REPEAT)
+ first = table;
c->flags &= ~CLIENT_REPEAT;
server_status_client(c);
- table = c->keytable;
goto table_changed;
}