mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/x11: take wl_event_loop instead of wl_display
This commit is contained in:
parent
ed0bba581b
commit
b62ac611c8
5 changed files with 14 additions and 16 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue