src/seat.c: small refactor

The condition server->input_mode != LAB_INPUT_STATE_PASSTHROUGH is enough
to catch when window switcher is active.
This commit is contained in:
tokyo4j 2024-12-30 00:45:43 +09:00 committed by Hiroaki Yamamoto
parent 0ef9906557
commit 8f8e734405

View file

@ -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,