xdg-decoration: store an xdg_toplevel instead of xdg_surface

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3685
This commit is contained in:
Leonardo Hernández Hernández 2023-08-19 11:10:36 -06:00
parent 22b6581a18
commit bdc34401ba
No known key found for this signature in database
GPG key ID: E538897EE11B9624
2 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,7 @@ struct wlr_xdg_toplevel_decoration_v1_state {
struct wlr_xdg_toplevel_decoration_v1 {
struct wl_resource *resource;
struct wlr_xdg_surface *surface;
struct wlr_xdg_toplevel * toplevel;
struct wlr_xdg_decoration_manager_v1 *manager;
struct wl_list link; // wlr_xdg_decoration_manager_v1.link