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 | |
7 | QT_BEGIN_NAMESPACE |
8 | |
9 | namespace QtWaylandClient { |
10 | |
11 | QWaylandFullScreenShellV1Integration::QWaylandFullScreenShellV1Integration() |
12 | : QWaylandShellIntegrationTemplate(1) |
13 | { |
14 | } |
15 | |
16 | QWaylandFullScreenShellV1Integration::~QWaylandFullScreenShellV1Integration() |
17 | { |
18 | if (isActive()) |
19 | release(); |
20 | } |
21 | |
22 | QWaylandShellSurface *QWaylandFullScreenShellV1Integration::createShellSurface(QWaylandWindow *window) |
23 | { |
24 | return new QWaylandFullScreenShellV1Surface(this, window); |
25 | } |
26 | |
27 | } // namespace QtWaylandClient |
28 | |
29 | QT_END_NAMESPACE |
30 |