mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Minor fix to resizing with mouse
This commit is contained in:
		
							parent
							
								
									ad72abb58f
								
							
						
					
					
						commit
						f7a6dd7ce9
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -425,6 +425,10 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct
 | 
			
		|||
		double dx = mouse_origin.x - prev_pos.x;
 | 
			
		||||
		double dy = mouse_origin.y - prev_pos.y;
 | 
			
		||||
 | 
			
		||||
		if (view != pointer_state.tiling.init_view) {
 | 
			
		||||
			valid = false;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if ((dx < 0 || mouse_origin.x < pointer_state.tiling.lock_pos.x) && pointer_state.lock.temp_left) {
 | 
			
		||||
			changed_tiling = true;
 | 
			
		||||
			valid = false;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue