mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-05 04:06:24 -05:00
seat: reverse conditional for early-exit of set_focus
This commit is contained in:
parent
3e10b1f7eb
commit
431320443a
1 changed files with 1 additions and 1 deletions
2
seat.c
2
seat.c
|
|
@ -506,7 +506,7 @@ seat_set_focus(struct cg_seat *seat, struct cg_view *view)
|
|||
struct wlr_seat *wlr_seat = seat->seat;
|
||||
struct cg_view *prev_view = seat_get_focus(seat);
|
||||
|
||||
if (prev_view == view || !view) {
|
||||
if (!view || prev_view == view) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue