mirror of
https://github.com/labwc/labwc.git
synced 2026-03-24 09:06:09 -04:00
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:
parent
0ef9906557
commit
8f8e734405
1 changed files with 1 additions and 2 deletions
|
|
@ -725,8 +725,7 @@ void
|
||||||
seat_focus_surface(struct seat *seat, struct wlr_surface *surface)
|
seat_focus_surface(struct seat *seat, struct wlr_surface *surface)
|
||||||
{
|
{
|
||||||
/* Don't update focus while window switcher, Move/Resize and menu interaction */
|
/* Don't update focus while window switcher, Move/Resize and menu interaction */
|
||||||
if (seat->server->osd_state.cycle_view || seat->server->input_mode
|
if (seat->server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) {
|
||||||
!= LAB_INPUT_STATE_PASSTHROUGH) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
seat_focus(seat, surface, /*replace_exclusive_layer*/ false,
|
seat_focus(seat, surface, /*replace_exclusive_layer*/ false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue