mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Don't add disabled outputs back to output layout
Return early from apply_output_config if the output is disabled.
This restores our previous behavior [1].
[1]: 0cdcf66bbc (diff-4f65f4327e987fef8ec3796cdb07644eL349)
			
			
This commit is contained in:
		
							parent
							
								
									97a6524a5a
								
							
						
					
					
						commit
						34dccd4224
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -425,6 +425,10 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
 | 
			
		|||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (oc && !oc->enabled) {
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (config->reloading) {
 | 
			
		||||
		output_damage_whole(output);
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			@ -464,7 +468,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
 | 
			
		|||
	output->width = output_box->width;
 | 
			
		||||
	output->height = output_box->height;
 | 
			
		||||
 | 
			
		||||
	if ((!oc || oc->enabled) && !output->configured) {
 | 
			
		||||
	if (!output->configured) {
 | 
			
		||||
		output_configure(output);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue