mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
chase: output-layout takes wl_display in constructor
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
This commit is contained in:
parent
d37309008c
commit
50047db8b2
3 changed files with 2 additions and 4 deletions
|
|
@ -431,7 +431,7 @@ output_init(struct server *server)
|
|||
* Create an output layout, which is 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);
|
||||
if (!server->output_layout) {
|
||||
wlr_log(WLR_ERROR, "unable to create output layout");
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
|
|||
|
|
@ -542,8 +542,6 @@ server_finish(struct server *server)
|
|||
wl_display_destroy_clients(server->wl_display);
|
||||
|
||||
seat_finish(server);
|
||||
wlr_output_layout_destroy(server->output_layout);
|
||||
|
||||
wl_display_destroy(server->wl_display);
|
||||
|
||||
/* TODO: clean up various scene_tree nodes */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue