From 40fe252c2dea81c5a248c16b6c1b80e57b6a6a70 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 11 Jul 2018 17:31:05 +0200 Subject: x11: make sure event source is drained Otherwise running under Xvfb will not deliver any events. This results in e.g. weston-info reporting a 0x0 window size (which results in all sorts of problems). --- backend/x11/backend.c | 1 + 1 file changed, 1 insertion(+) (limited to 'backend') diff --git a/backend/x11/backend.c b/backend/x11/backend.c index f5619207..e0f5d6e7 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -264,6 +264,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, wlr_log(WLR_ERROR, "Could not create event source"); goto error_display; } + wl_event_source_check(x11->event_source); x11->screen = xcb_setup_roots_iterator(xcb_get_setup(x11->xcb_conn)).data; -- cgit v1.2.3