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.
This commit is contained in:
tokyo4j 2025-02-20 02:30:08 +09:00
parent 6927153a83
commit b5bb014046

View file

@ -1042,7 +1042,12 @@ actions_run(struct view *activator, struct server *server,
} }
break; break;
case ACTION_TYPE_FOCUS: 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); desktop_focus_view(view, /*raise*/ false);
} }
break; break;