mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-14 11:04:20 -04:00
This can be used to disambiguate the exclusive edge when the anchors are
on a corner (so there would be 2 candidates)
it's quite quick and dirty mostly to understand if we do want to push
for something along the lines
(cherry picked from commit ad5246f0d0
)
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
/*
|
|
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
|
* SPDX-FileCopyrightText: 2018 Drew DeVault <sir@cmpwn.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-3.0-or-later
|
|
*/
|
|
|
|
#include "qwaylandlayershellintegration_p.h"
|
|
#include "qwaylandlayersurface_p.h"
|
|
#include "qwaylandxdgactivationv1_p.h"
|
|
|
|
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
|
#include <QtWaylandClient/private/qwaylandwindow_p.h>
|
|
|
|
namespace LayerShellQt
|
|
{
|
|
QWaylandLayerShellIntegration::QWaylandLayerShellIntegration()
|
|
: QWaylandShellIntegrationTemplate<QWaylandLayerShellIntegration>(5)
|
|
, m_xdgActivation(new QWaylandXdgActivationV1)
|
|
{
|
|
}
|
|
|
|
QWaylandLayerShellIntegration::~QWaylandLayerShellIntegration()
|
|
{
|
|
if (object() && zwlr_layer_shell_v1_get_version(object()) >= ZWLR_LAYER_SHELL_V1_DESTROY_SINCE_VERSION) {
|
|
zwlr_layer_shell_v1_destroy(object());
|
|
}
|
|
}
|
|
|
|
QtWaylandClient::QWaylandShellSurface *QWaylandLayerShellIntegration::createShellSurface(QtWaylandClient::QWaylandWindow *window)
|
|
{
|
|
return new QWaylandLayerSurface(this, window);
|
|
}
|
|
|
|
|
|
}
|