by Alexandros Frantzis at 2025-04-24T21:25:36+02:00
winewayland: Always check the role to determine whether a surface is a toplevel.
Since the role objects in the wayland_surface struct are part of a union, we
first need to check whether the surface has the right role before checking
the role objects themselves. Otherwise we risk using a subsurface as a toplevel
or vice-versa.