seat: reverse conditional for early-exit of set_focus

This commit is contained in:
Jente Hidskes 2019-01-02 21:13:18 +01:00
parent 3e10b1f7eb
commit 431320443a
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA

2
seat.c
View file

@ -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;
}