client: Fix changing to subsurface now that wl_surface is not destroyed


In the past isVisible() was equivalent to having a wl_surface - this does
not hold anymore. The QWaylandWindow will have a wl_surface for all its
life time. Changing parent while the window is hidden would run now
into a protocol error.

Change-Id: I2aec6217ad495daa9dbb2ee2fee1b73ba00e6937
Reviewed-by: David Edmundson <davidedmundson@kde.org>
commitf0fe0e61d8f9e1e2b3c307314e5c2c937a4fd72e
parentc12f0400dcdf88b4c0f40bf00eb652940c517cd2
authorDavid Redondo <qt@david-redondo.de>
committerDavid Redondo <qt@david-redondo.de>
commit timeWed, 6 Nov 2024 14:07:09 +0100