aboutsummaryrefslogtreecommitdiff
path: root/examples/scene-graph.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-08-12 08:24:59 +0200
committerIsaac Freund <mail@isaacfreund.com>2023-11-23 11:39:25 +0000
commit5717e27c06a89a64b3a168ed22682bf657b17ebf (patch)
tree43ce180fed0dd8d7bc1f8b0fc2603898bd83d719 /examples/scene-graph.c
parent6a7463bb8e29c55b906dd66e2ce3625dcccbd3f4 (diff)
output: take wl_display in wlr_output_create_global()
Currently wlr_output holds a wl_display, but it will go away soon. Instead of relying on that field in wlr_output_create_global(), make the dependency explicit by taking a wl_display as argument.
Diffstat (limited to 'examples/scene-graph.c')
-rw-r--r--examples/scene-graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scene-graph.c b/examples/scene-graph.c
index 03ad8141..be1070e9 100644
--- a/examples/scene-graph.c
+++ b/examples/scene-graph.c
@@ -90,7 +90,7 @@ static void server_handle_new_output(struct wl_listener *listener, void *data) {
wlr_output_commit_state(wlr_output, &state);
wlr_output_state_finish(&state);
- wlr_output_create_global(wlr_output);
+ wlr_output_create_global(wlr_output, server->display);
}
static void surface_handle_commit(struct wl_listener *listener, void *data) {