aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-08-12 08:37:08 +0200
committerIsaac Freund <mail@isaacfreund.com>2023-11-23 11:39:25 +0000
commitd61ec694b352c0f21c06958c5ef0417f3e424e3c (patch)
treeac9c486568c87c79a076ec2abdc69e8c6f4b4893 /backend/x11
parentd23d8ed3ba4d56d3dc33a4ccc77c16b68f716f2d (diff)
output: take wl_event_loop in wlr_output_init()
We don't need the whole wl_display here anymore. The wl_event_loop is enough.
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c
index f5dc527c..634424e5 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -549,7 +549,8 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) {
wlr_output_state_init(&state);
wlr_output_state_set_custom_mode(&state, 1024, 768, 0);
- wlr_output_init(wlr_output, &x11->backend, &output_impl, x11->wl_display, &state);
+ wlr_output_init(wlr_output, &x11->backend, &output_impl,
+ wl_display_get_event_loop(x11->wl_display), &state);
wlr_output_state_finish(&state);
size_t output_num = ++last_output_num;