mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	xwayland: fix wlr_xwayland_surface_from_wlr_surface() docs
32daa43a45 has removed the asymmetry in
the relationship of a wlr_surface and an unmapped wlr_xwayland_surface,
when wlr_surface.role_data wasn't NULL but wlr_xwayland_surface.surface
was. However, this also means that
wlr_xwayland_surface_from_wlr_surface() now returns NULL if the
wlr_surface is unmapped. Fix the documentation to reflect this.
			
			
This commit is contained in:
		
							parent
							
								
									2b22a10478
								
							
						
					
					
						commit
						627a5c5112
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -232,7 +232,7 @@ bool wlr_surface_is_xwayland_surface(struct wlr_surface *surface);
 | 
			
		|||
 * Get a struct wlr_xwayland_surface from a struct wlr_surface.
 | 
			
		||||
 * Asserts that the surface has the xwayland surface role.
 | 
			
		||||
 * May return NULL even if the surface has the xwayland surface role if the
 | 
			
		||||
 * corresponding xwayland surface has been destroyed.
 | 
			
		||||
 * corresponding xwayland surface has been unmapped or destroyed.
 | 
			
		||||
 */
 | 
			
		||||
struct wlr_xwayland_surface *wlr_xwayland_surface_from_wlr_surface(
 | 
			
		||||
	struct wlr_surface *surface);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue