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

xdg-shell: Move check for surface having buffer earlier



It's illegal to create an xdg_surface for a surface which already has a
buffer attached to it. We check for this, but only after we've created
our weston_desktop_surface; this simply avoids creating the internal
tracking structure when we're only going to destroy it after posting the
error.

Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
parent 6f6fd268
Loading
Loading
Loading
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