mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	util/box: always treat NULL boxes as empty
This commit is contained in:
		
							parent
							
								
									5d67bbde86
								
							
						
					
					
						commit
						5f4a35290d
					
				
					 2 changed files with 16 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -40,6 +40,11 @@ struct wlr_fbox {
 | 
			
		|||
	double width, height;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Functions below accept NULL where a box is expected, which is treated
 | 
			
		||||
 * the same as an empty box.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Finds the closest point within the box bounds.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue