backend/x11: take wl_event_loop instead of wl_display

This commit is contained in:
Simon Ser 2023-11-23 14:03:14 +01:00 committed by Kirill Primak
parent ed0bba581b
commit b62ac611c8
5 changed files with 14 additions and 16 deletions

View file

@ -62,7 +62,7 @@ struct wlr_x11_touchpoint {
struct wlr_x11_backend {
struct wlr_backend backend;
struct wl_display *wl_display;
struct wl_event_loop *event_loop;
bool started;
xcb_connection_t *xcb;
@ -108,7 +108,7 @@ struct wlr_x11_backend {
uint8_t present_opcode;
uint8_t xinput_opcode;
struct wl_listener display_destroy;
struct wl_listener event_loop_destroy;
};
struct wlr_x11_buffer {

View file

@ -17,7 +17,7 @@ struct wlr_input_device;
* The `x11_display` argument is the name of the X Display socket. Set
* to NULL for the default behaviour of XOpenDisplay().
*/
struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
struct wlr_backend *wlr_x11_backend_create(struct wl_event_loop *loop,
const char *x11_display);
/**