diff options
| author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-23 10:56:01 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-27 00:06:03 -0600 | 
| commit | 057d50af8cd54647933021ae20e975a54ecf4408 (patch) | |
| tree | be43a2aa96f9c800370d911bc19ae5de876896f9 | |
| parent | 2e4fdc1664e094b38814d760b4c933c3c3450a57 (diff) | |
pass wl_display to wlr_output_layout_create (wlroots!4310)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
| -rw-r--r-- | dwl.c | 3 | 
1 files changed, 1 insertions, 2 deletions
@@ -631,7 +631,6 @@ cleanup(void)  		waitpid(child_pid, NULL, 0);  	}  	wlr_xcursor_manager_destroy(cursor_mgr); -	wlr_output_layout_destroy(output_layout);  	wl_display_destroy(dpy);  	/* Destroy after the wayland display (when the monitors are already destroyed)  	   to avoid destroying them with an invalid scene output. */ @@ -2232,7 +2231,7 @@ setup(void)  	/* Creates an output layout, which a wlroots utility for working with an  	 * arrangement of screens in a physical layout. */ -	output_layout = wlr_output_layout_create(); +	output_layout = wlr_output_layout_create(dpy);  	LISTEN_STATIC(&output_layout->events.change, updatemons);  	wlr_xdg_output_manager_v1_create(dpy, output_layout);  | 
