From 8f8e7344055451092e495d5822883320aba06bfe Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Mon, 30 Dec 2024 00:45:43 +0900 Subject: [PATCH] src/seat.c: small refactor The condition server->input_mode != LAB_INPUT_STATE_PASSTHROUGH is enough to catch when window switcher is active. --- src/seat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/seat.c b/src/seat.c index 40d370e5..a1924f42 100644 --- a/src/seat.c +++ b/src/seat.c @@ -725,8 +725,7 @@ void seat_focus_surface(struct seat *seat, struct wlr_surface *surface) { /* Don't update focus while window switcher, Move/Resize and menu interaction */ - if (seat->server->osd_state.cycle_view || seat->server->input_mode - != LAB_INPUT_STATE_PASSTHROUGH) { + if (seat->server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) { return; } seat_focus(seat, surface, /*replace_exclusive_layer*/ false, -- 2.52.0