mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Unset DISPLAY when wlr_xwayland fails
Avoids having applications connect to a leftover DISPLAY when Xwayland
fails to initialize.
(cherry picked from commit eb4fa18308)
			
			
This commit is contained in:
		
							parent
							
								
									1c5046d7e4
								
							
						
					
					
						commit
						2cc61bbbbe
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -202,6 +202,7 @@ bool server_start(struct sway_server *server) {
 | 
			
		|||
					config->xwayland == XWAYLAND_MODE_LAZY);
 | 
			
		||||
		if (!server->xwayland.wlr_xwayland) {
 | 
			
		||||
			sway_log(SWAY_ERROR, "Failed to start Xwayland");
 | 
			
		||||
			unsetenv("DISPLAY");
 | 
			
		||||
		} else {
 | 
			
		||||
			wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface,
 | 
			
		||||
				&server->xwayland_surface);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue