mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: initialise x+y variables to handle edge case
This commit is contained in:
		
							parent
							
								
									6a5deb628e
								
							
						
					
					
						commit
						7dc4ae36ca
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -147,7 +147,7 @@ view_move_to_edge(struct view *view, const char *direction)
 | 
			
		|||
	struct border border = view_border(view);
 | 
			
		||||
	struct wlr_box usable = output_usable_area_in_layout_coords(output);
 | 
			
		||||
 | 
			
		||||
	int x, y;
 | 
			
		||||
	int x = 0, y = 0;
 | 
			
		||||
	if (!strcasecmp(direction, "left")) {
 | 
			
		||||
		x = usable.x + border.left + GAP;
 | 
			
		||||
		y = view->y;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue