From 013ada58c864c68402aa28c7ad8eef542f346c9d Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 28 Aug 2026 07:36:01 +0000 Subject: [PATCH] Ignore focus events earlier to avoid them interfering with prefix, GitHub issue 5539. --- server-client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server-client.c b/server-client.c index 80efc614d..97c83514f 100644 --- a/server-client.c +++ b/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.508 2026/08/25 06:14:16 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.509 2026/08/28 07:36:01 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -1504,6 +1504,10 @@ server_client_key_callback(struct cmdq_item *item, void *data) TAILQ_EMPTY(&wp->modes)) goto forward_key; + /* Focus events are not keys and cannot be bound. */ + if (key == KEYC_FOCUS_IN || key == KEYC_FOCUS_OUT) + goto forward_key; + /* * Work out the current key table. If the pane is in a mode, use * the mode table instead of the default key table.