mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2708 from RyanDwyer/fix-output-disconnect-crash
Fix crash when disconnecting output
This commit is contained in:
		
						commit
						08815f9cfb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -985,7 +985,8 @@ void container_discover_outputs(struct sway_container *con) {
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
	struct sway_output *new_output = container_get_effective_output(con);
 | 
			
		||||
	double old_scale = old_output ? old_output->wlr_output->scale : -1;
 | 
			
		||||
	double old_scale = old_output && old_output->enabled ?
 | 
			
		||||
		old_output->wlr_output->scale : -1;
 | 
			
		||||
	double new_scale = new_output ? new_output->wlr_output->scale : -1;
 | 
			
		||||
	if (old_scale != new_scale) {
 | 
			
		||||
		container_update_title_textures(con);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue