fix missing initializations in previous commit

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
mojyack 2023-09-02 14:08:55 +09:00 committed by Maarten van Gompel
parent 21045044ba
commit 50296daa46

2
main.c
View File

@ -283,6 +283,7 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
} else {
if (pointer != NULL) {
wl_pointer_destroy(pointer);
pointer = NULL;
}
}
if ((caps & WL_SEAT_CAPABILITY_TOUCH)) {
@ -293,6 +294,7 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
} else {
if (touch != NULL) {
wl_touch_destroy(touch);
touch = NULL;
}
}
}