mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_surface_get_root_surface: walk up parent
This would dead-loop and never walk up if called on a subsurface
This commit is contained in:
		
							parent
							
								
									f11ef26379
								
							
						
					
					
						commit
						cf9b8c0a8c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -956,7 +956,7 @@ struct wlr_surface *wlr_surface_get_root_surface(struct wlr_surface *surface) {
 | 
				
			||||||
	while (wlr_surface_is_subsurface(surface)) {
 | 
						while (wlr_surface_is_subsurface(surface)) {
 | 
				
			||||||
		struct wlr_subsurface *subsurface =
 | 
							struct wlr_subsurface *subsurface =
 | 
				
			||||||
			wlr_subsurface_from_surface(surface);
 | 
								wlr_subsurface_from_surface(surface);
 | 
				
			||||||
		surface = subsurface->surface;
 | 
							surface = subsurface->parent;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return surface;
 | 
						return surface;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue