mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	pass wl_display to wlr_output_layout_create (wlroots!4310)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
This commit is contained in:
		
							parent
							
								
									6838f909bd
								
							
						
					
					
						commit
						1c9e9ceeac
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		
							
								
								
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -634,7 +634,6 @@ cleanup(void)
 | 
				
			||||||
		waitpid(child_pid, NULL, 0);
 | 
							waitpid(child_pid, NULL, 0);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	wlr_xcursor_manager_destroy(cursor_mgr);
 | 
						wlr_xcursor_manager_destroy(cursor_mgr);
 | 
				
			||||||
	wlr_output_layout_destroy(output_layout);
 | 
					 | 
				
			||||||
	wl_display_destroy(dpy);
 | 
						wl_display_destroy(dpy);
 | 
				
			||||||
	/* Destroy after the wayland display (when the monitors are already destroyed)
 | 
						/* Destroy after the wayland display (when the monitors are already destroyed)
 | 
				
			||||||
	   to avoid destroying them with an invalid scene output. */
 | 
						   to avoid destroying them with an invalid scene output. */
 | 
				
			||||||
| 
						 | 
					@ -2243,7 +2242,7 @@ setup(void)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Creates an output layout, which a wlroots utility for working with an
 | 
						/* Creates an output layout, which a wlroots utility for working with an
 | 
				
			||||||
	 * arrangement of screens in a physical layout. */
 | 
						 * 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);
 | 
						LISTEN_STATIC(&output_layout->events.change, updatemons);
 | 
				
			||||||
	wlr_xdg_output_manager_v1_create(dpy, output_layout);
 | 
						wlr_xdg_output_manager_v1_create(dpy, output_layout);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue