surface: don't destroy surface while compositor has locks

References: https://github.com/swaywm/wlroots/issues/2957
This commit is contained in:
Simon Ser 2021-07-06 14:25:48 +02:00
parent 3fdf8cf07e
commit f0e695582a
2 changed files with 16 additions and 3 deletions

View file

@ -84,7 +84,7 @@ struct wlr_surface_output {
};
struct wlr_surface {
struct wl_resource *resource;
struct wl_resource *resource; // can be NULL if destroyed by the client
struct wlr_renderer *renderer;
/**
* The surface's buffer, if any. A surface has an attached buffer when it