]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/seat.c: small refactor
authortokyo4j <hrak1529@gmail.com>
Sun, 29 Dec 2024 15:45:43 +0000 (00:45 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Mon, 30 Dec 2024 09:07:45 +0000 (18:07 +0900)
The condition server->input_mode != LAB_INPUT_STATE_PASSTHROUGH is enough
to catch when window switcher is active.

src/seat.c

index 40d370e5926b1724790358cee27340ab5f97d68f..a1924f424ccc94ae26c939c4f92fadacfd068235 100644 (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,