mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	xdg: Handle corner case of move with pending resize correctly
If xdg_toplevel_view_move() is called when a resize is pending (e.g. after xdg_toplevel_view_resize() but before handle_commit()), the newer x/y coordinates passed to move() should take precendence over the older pending_move_resize.x/y coordinates. This is consistent with the logic used in xwayland.c's move().
This commit is contained in:
		
							parent
							
								
									cfc3c93102
								
							
						
					
					
						commit
						103a2a8f6c
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -227,6 +227,11 @@ xdg_toplevel_view_move(struct view *view, int x, int y)
 | 
			
		|||
{
 | 
			
		||||
	view->x = x;
 | 
			
		||||
	view->y = y;
 | 
			
		||||
 | 
			
		||||
	/* override any previous pending move */
 | 
			
		||||
	view->pending_move_resize.x = x;
 | 
			
		||||
	view->pending_move_resize.y = y;
 | 
			
		||||
 | 
			
		||||
	view_moved(view);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue