mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	bug: fix a subsurface location calculation
This commit is contained in:
		
							parent
							
								
									321c26c2a3
								
							
						
					
					
						commit
						117586c872
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -91,7 +91,7 @@ static struct wlr_subsurface *subsurface_at(struct wlr_surface *surface,
 | 
			
		|||
		int sub_width = subsurface->surface->current->buffer_width;
 | 
			
		||||
		int sub_height = subsurface->surface->current->buffer_height;
 | 
			
		||||
		if ((sx > _sub_x && sx < _sub_x + sub_width) &&
 | 
			
		||||
				(sy > _sub_y && sub_y < sub_y + sub_height)) {
 | 
			
		||||
				(sy > _sub_y && sy < _sub_y + sub_height)) {
 | 
			
		||||
			*sub_x = _sub_x;
 | 
			
		||||
			*sub_y = _sub_y;
 | 
			
		||||
			return subsurface;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue