mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Adjust move command to account for changed coordinate system
This commit is contained in:
		
							parent
							
								
									f24087d104
								
							
						
					
					
						commit
						f7cadf2333
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -20,9 +20,7 @@ static const char* expected_syntax =
 | 
				
			||||||
	"'move position mouse'";
 | 
						"'move position mouse'";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct sway_container *output_in_direction(const char *direction,
 | 
					static struct sway_container *output_in_direction(const char *direction,
 | 
				
			||||||
		struct wlr_output *reference, int ref_ox, int ref_oy) {
 | 
							struct wlr_output *reference, int ref_lx, int ref_ly) {
 | 
				
			||||||
	int ref_lx = ref_ox + reference->lx,
 | 
					 | 
				
			||||||
		ref_ly = ref_oy + reference->ly;
 | 
					 | 
				
			||||||
	struct {
 | 
						struct {
 | 
				
			||||||
		char *name;
 | 
							char *name;
 | 
				
			||||||
		enum wlr_direction direction;
 | 
							enum wlr_direction direction;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue