mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Handle output disabling during runtime
Output now gets disabled if disable command is invoked via bindsym or IPC.
This commit is contained in:
		
							parent
							
								
									49afdb4393
								
							
						
					
					
						commit
						ce98569fbc
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -859,6 +859,11 @@ void apply_input_config(struct input_config *ic, struct libinput_device *dev) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void apply_output_config(struct output_config *oc, swayc_t *output) {
 | 
			
		||||
	if (oc->enabled == 0) {
 | 
			
		||||
		destroy_output(output);
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (oc && oc->width > 0 && oc->height > 0) {
 | 
			
		||||
		output->width = oc->width;
 | 
			
		||||
		output->height = oc->height;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue