mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: remove warning in view_move_resize()
This commit is contained in:
		
							parent
							
								
									801a04a647
								
							
						
					
					
						commit
						d34efad7bb
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -37,12 +37,10 @@ view_move(struct view *view, double x, double y)
 | 
			
		|||
	wlr_scene_node_set_position(&view->scene_tree->node, view->x, view->y);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* N.B. Use view_move() if not resizing. */
 | 
			
		||||
void
 | 
			
		||||
view_move_resize(struct view *view, struct wlr_box geo)
 | 
			
		||||
{
 | 
			
		||||
	if (view->w == geo.width && view->h == geo.height) {
 | 
			
		||||
		wlr_log(WLR_ERROR, "use view_move() if not resizing");
 | 
			
		||||
	}
 | 
			
		||||
	if (view->impl->configure) {
 | 
			
		||||
		view->impl->configure(view, geo);
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue