suggestion picker: a persistent layer to complement virtual keyboards like wvkbd
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | main.c | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -1,2 +1,2 @@ -VERSION = 0.1.3 +VERSION = 0.1.4 CFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=700 @@ -18,7 +18,7 @@ exit(1) /* client state */ -static const char *namespace = "wlroots"; +static const char *namespace = "suggpicker"; static struct wl_display *display; static struct wl_compositor *compositor; static struct wl_seat *seat; @@ -549,6 +549,12 @@ main(int argc, char **argv) { if (fds[WAYLAND_FD].revents & POLLIN) { wl_display_dispatch(display); } + if (fds[WAYLAND_FD].revents & POLLERR) { + die("Exceptional condition on wayland socket.\n"); + } + if (fds[WAYLAND_FD].revents & POLLHUP) { + die("Wayland socket has been disconnected.\n"); + } if (fds[SIGNAL_FD].revents & POLLIN) { struct signalfd_siginfo si; |