mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	handlers: Fix swapped top/bottom for seamless transitions.
This commit is contained in:
		
							parent
							
								
									2c100105bf
								
							
						
					
					
						commit
						b093a5d16f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -398,7 +398,7 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct
 | 
				
			||||||
				if (output->x == c->x && c->y + c->height == output->y) {
 | 
									if (output->x == c->x && c->y + c->height == output->y) {
 | 
				
			||||||
					sway_log(L_DEBUG, "%s is below %s", output->name, c->name);
 | 
										sway_log(L_DEBUG, "%s is below %s", output->name, c->name);
 | 
				
			||||||
					workspace_switch(c);
 | 
										workspace_switch(c);
 | 
				
			||||||
					new_origin.y = 0;
 | 
										new_origin.y = c->height;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		} else if ((double)origin->y == output->height) { // Bottom edge
 | 
							} else if ((double)origin->y == output->height) { // Bottom edge
 | 
				
			||||||
| 
						 | 
					@ -410,7 +410,7 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct
 | 
				
			||||||
				if (output->x == c->x && output->y + output->height == c->y) {
 | 
									if (output->x == c->x && output->y + output->height == c->y) {
 | 
				
			||||||
					sway_log(L_DEBUG, "%s is above %s", output->name, c->name);
 | 
										sway_log(L_DEBUG, "%s is above %s", output->name, c->name);
 | 
				
			||||||
					workspace_switch(c);
 | 
										workspace_switch(c);
 | 
				
			||||||
					new_origin.y = c->height;
 | 
										new_origin.y = 0;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue