Skip to content
Commit 80e94822 authored by Daniel Stone's avatar Daniel Stone
Browse files

xdg-shell: Fail xdg_surface creation when surface has role



If a given wl_surface already has a role (e.g. cursor or subsurface),
there is nothing you can do with an xdg_surface which won't raise an
error, apart from destroying it.

As of wayland-protocols@11fecf08 this is now explicitly
specified to be illegal, so disallow it within libweston-desktop. This
avoids us tying ourselves in knots with surface-private ownership.

Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
parent baa8f6b1
Loading
Loading
Loading
Pipeline #365994 passed with stages
in 2 minutes and 5 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment