mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-08-29 15:22:07 +02:00
fix missing initializations in previous commit
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
committed by
Maarten van Gompel
parent
21045044ba
commit
50296daa46
2
main.c
2
main.c
@@ -283,6 +283,7 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
|||||||
} else {
|
} else {
|
||||||
if (pointer != NULL) {
|
if (pointer != NULL) {
|
||||||
wl_pointer_destroy(pointer);
|
wl_pointer_destroy(pointer);
|
||||||
|
pointer = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((caps & WL_SEAT_CAPABILITY_TOUCH)) {
|
if ((caps & WL_SEAT_CAPABILITY_TOUCH)) {
|
||||||
@@ -293,6 +294,7 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
|||||||
} else {
|
} else {
|
||||||
if (touch != NULL) {
|
if (touch != NULL) {
|
||||||
wl_touch_destroy(touch);
|
wl_touch_destroy(touch);
|
||||||
|
touch = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user