suggestion picker: a persistent layer to complement virtual keyboards like wvkbd
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |