wayland: Destroy xdg_surface after role
authorJonas Ådahl <jadahl@gmail.com>
Sun, 5 Mar 2023 19:54:40 +0000 (20:54 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 5 Mar 2023 19:55:41 +0000 (20:55 +0100)
commit4500fa633b5a8340f8f22bc42fe2046c0439f8f3
tree8eec9de4622f7462a7f0c8a3ffca8f6ee4ffebf8
parent0fa1e71ef0c01a1e09993c3e6c368fd8eba15e66
wayland: Destroy xdg_surface after role

The split-up of gdksurface-wayland.c introduced a protocol violation
when it didn't make sure xdg_surface was destroyed after the role
objects (xdg_popup / xdg_toplevel). Fix that.

Fixes: 2a463baed0 ("wayland: Rearrange the surface code")
gdk/wayland/gdksurface-wayland.c