From b5bb014046f89606b404df8b877af3a2760a2ba0 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Thu, 20 Feb 2025 02:30:08 +0900 Subject: [PATCH] action: ignore Focus action while window switching We could check against server->input_mode inside desktop_focus_view(), but it should be done after we release 0.8.3. --- src/action.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/action.c b/src/action.c index 3b03558c..a54190db 100644 --- a/src/action.c +++ b/src/action.c @@ -1042,7 +1042,12 @@ actions_run(struct view *activator, struct server *server, } break; case ACTION_TYPE_FOCUS: - if (view) { + if (view && server->input_mode + != LAB_INPUT_STATE_WINDOW_SWITCHER) { + /* + * TODO: check against server->input_mode + * inside desktop_focus_view() + */ desktop_focus_view(view, /*raise*/ false); } break;