diff options
author | Simon Ser <contact@emersion.fr> | 2023-08-12 08:24:08 +0200 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-11-23 11:39:25 +0000 |
commit | 6a7463bb8e29c55b906dd66e2ce3625dcccbd3f4 (patch) | |
tree | 11e408582c20af68bc6159ac325cb1da6ab354b2 /tinywl | |
parent | 63792b38e46ae1741a6492d3c0183cb9566e4c9f (diff) |
output-layout: take wl_display in constructor
The output layout creates and destroys wl_output globals. We will
soon need the wl_display to do so.
Diffstat (limited to 'tinywl')
-rw-r--r-- | tinywl/tinywl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index e3e8f237..5a57addd 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -891,7 +891,7 @@ int main(int argc, char *argv[]) { /* Creates an output layout, which a wlroots utility for working with an * arrangement of screens in a physical layout. */ - server.output_layout = wlr_output_layout_create(); + server.output_layout = wlr_output_layout_create(server.wl_display); /* Configure a listener to be notified when new outputs are available on the * backend. */ @@ -1007,7 +1007,6 @@ int main(int argc, char *argv[]) { wl_display_destroy_clients(server.wl_display); wlr_scene_node_destroy(&server.scene->tree.node); wlr_xcursor_manager_destroy(server.cursor_mgr); - wlr_output_layout_destroy(server.output_layout); wl_display_destroy(server.wl_display); return 0; } |