mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	config: Don't try to apply bad output resolution.
This commit is contained in:
		
							parent
							
								
									ca862a5bd4
								
							
						
					
					
						commit
						4fea92ef0c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -284,7 +284,7 @@ bool read_config(FILE *file, bool is_active) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void apply_output_config(struct output_config *oc, swayc_t *output) {
 | 
					void apply_output_config(struct output_config *oc, swayc_t *output) {
 | 
				
			||||||
	if (oc && oc->width != -1 && oc->height != -1) {
 | 
						if (oc && oc->width > 0 && oc->height > 0) {
 | 
				
			||||||
		output->width = oc->width;
 | 
							output->width = oc->width;
 | 
				
			||||||
		output->height = oc->height;
 | 
							output->height = oc->height;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue