1// Copyright (C) 2018 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qwaylandfullscreenshellv1integration.h"
5#include "qwaylandfullscreenshellv1surface.h"
6
7QT_BEGIN_NAMESPACE
8
9namespace QtWaylandClient {
10
11QWaylandFullScreenShellV1Integration::QWaylandFullScreenShellV1Integration()
12 : QWaylandShellIntegrationTemplate(1)
13{
14}
15
16QWaylandFullScreenShellV1Integration::~QWaylandFullScreenShellV1Integration()
17{
18 if (isActive())
19 release();
20}
21
22QWaylandShellSurface *QWaylandFullScreenShellV1Integration::createShellSurface(QWaylandWindow *window)
23{
24 return new QWaylandFullScreenShellV1Surface(this, window);
25}
26
27} // namespace QtWaylandClient
28
29QT_END_NAMESPACE
30

source code of qtwayland/src/plugins/shellintegration/fullscreen-shell-v1/qwaylandfullscreenshellv1integration.cpp