mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-05-28 02:50:21 -04:00
Properly guard zwlr_layer_shell_v1 destructor request
The destructor request was added in version 3.
This commit is contained in:
parent
b4c62f7926
commit
f684097c0f
@ -17,7 +17,8 @@ QWaylandLayerShell::QWaylandLayerShell(QtWayland::zwlr_layer_shell_v1 *shell)
|
|||||||
|
|
||||||
QWaylandLayerShell::~QWaylandLayerShell()
|
QWaylandLayerShell::~QWaylandLayerShell()
|
||||||
{
|
{
|
||||||
zwlr_layer_shell_v1_destroy(object());
|
if (zwlr_layer_shell_v1_get_version(object()) >= ZWLR_LAYER_SHELL_V1_DESTROY_SINCE_VERSION)
|
||||||
|
zwlr_layer_shell_v1_destroy(object());
|
||||||
}
|
}
|
||||||
|
|
||||||
QWaylandLayerSurface *QWaylandLayerShell::createLayerSurface(QtWaylandClient::QWaylandWindow *window)
|
QWaylandLayerSurface *QWaylandLayerShell::createLayerSurface(QtWaylandClient::QWaylandWindow *window)
|
||||||
|
Loading…
Reference in New Issue
Block a user