mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01: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…
Reference in a new issue