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).
This commit is contained in:
parent
8515b7c65b
commit
40fe252c2d
|
@ -264,6 +264,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
||||||
wlr_log(WLR_ERROR, "Could not create event source");
|
wlr_log(WLR_ERROR, "Could not create event source");
|
||||||
goto error_display;
|
goto error_display;
|
||||||
}
|
}
|
||||||
|
wl_event_source_check(x11->event_source);
|
||||||
|
|
||||||
x11->screen = xcb_setup_roots_iterator(xcb_get_setup(x11->xcb_conn)).data;
|
x11->screen = xcb_setup_roots_iterator(xcb_get_setup(x11->xcb_conn)).data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue