From 627a5c511278e67c3c308cdc6a639cbb490f48c3 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sun, 13 Nov 2022 01:30:22 +0300 Subject: [PATCH] xwayland: fix wlr_xwayland_surface_from_wlr_surface() docs 32daa43a454bcea1306ad0976fd4161ce8c7e86f 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. --- include/wlr/xwayland/xwayland.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wlr/xwayland/xwayland.h b/include/wlr/xwayland/xwayland.h index fd161937..372ab9a8 100644 --- a/include/wlr/xwayland/xwayland.h +++ b/include/wlr/xwayland/xwayland.h @@ -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);