mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	resistance.c: initialize 'flags' to zero
Failure to initialize this variable sometimes causes windows to stick to edges during move/resize. Issues #331 and #309 may be related to this
This commit is contained in:
		
							parent
							
								
									8a058ba7b6
								
							
						
					
					
						commit
						87a64b64fa
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -44,7 +44,7 @@ resistance_move_apply(struct view *view, double *x, double *y)
 | 
			
		|||
	struct edges view_edges; /* The edges of the current view */
 | 
			
		||||
	struct edges target_edges; /* The desired edges */
 | 
			
		||||
	struct edges other_edges; /* The edges of the monitor/other view */
 | 
			
		||||
	struct edges flags; /* To be set in is_within_resistance_range() */
 | 
			
		||||
	struct edges flags = { 0 };
 | 
			
		||||
 | 
			
		||||
	view_edges.left = view->x - border.left + 1;
 | 
			
		||||
	view_edges.top = view->y - border.top + 1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue