From: tokyo4j Date: Sun, 29 Dec 2024 15:45:43 +0000 (+0900) Subject: src/seat.c: small refactor X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8f8e7344055451092e495d5822883320aba06bfe;p=proto%2Flabwc.git src/seat.c: small refactor The condition server->input_mode != LAB_INPUT_STATE_PASSTHROUGH is enough to catch when window switcher is active. --- 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,