commit 46252ac9625da25a783fbd79ffee7fcaa746a051
parent c6739137f261945b2ae071f96c4b9daf1270eea7
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Sat, 22 May 2021 12:15:30 -0500
check for pointer or touch
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/svkbd.c b/svkbd.c
@@ -655,7 +655,9 @@ setup(void)
touch = wl_seat_get_touch(seat);
wl_touch_add_listener(touch, &touchlistener, NULL);
- if (!pointer)
+ wl_display_roundtrip(dpy);
+
+ if (!pointer || !touch)
exit(1);
/* Apply defaults to font and colors */