mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix output transform rotation direction
This patch makes it so users that have configured their screen with a transform don't have to update their config after the wlroots breaking change. References: https://github.com/swaywm/wlroots/pull/2023
This commit is contained in:
		
							parent
							
								
									a5a4d32816
								
							
						
					
					
						commit
						ab00f7f319
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -50,6 +50,10 @@ struct cmd_results *output_cmd_transform(int argc, char **argv) {
 | 
				
			||||||
		return cmd_results_new(CMD_INVALID, "Invalid output transform.");
 | 
							return cmd_results_new(CMD_INVALID, "Invalid output transform.");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Sway uses clockwise transforms, while WL_OUTPUT_TRANSFORM_* describe
 | 
				
			||||||
 | 
						// anti-clockwise transforms
 | 
				
			||||||
 | 
						transform = invert_rotation_direction(transform);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct output_config *output = config->handler_context.output_config;
 | 
						struct output_config *output = config->handler_context.output_config;
 | 
				
			||||||
	config->handler_context.leftovers.argc = argc - 1;
 | 
						config->handler_context.leftovers.argc = argc - 1;
 | 
				
			||||||
	config->handler_context.leftovers.argv = argv + 1;
 | 
						config->handler_context.leftovers.argv = argv + 1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue