summaryrefslogtreecommitdiffstats
path: root/src/plugins/shellintegration/fullscreen-shell-v1/qwaylandfullscreenshellv1integration.cpp
blob: 7dcdd6e59971c7e6ad0cf4dcd25359c1ba63ba3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2018 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include "qwaylandfullscreenshellv1integration.h"
#include "qwaylandfullscreenshellv1surface.h"

QT_BEGIN_NAMESPACE

namespace QtWaylandClient {

QWaylandFullScreenShellV1Integration::QWaylandFullScreenShellV1Integration()
    : QWaylandShellIntegrationTemplate(1)
{
}

QWaylandFullScreenShellV1Integration::~QWaylandFullScreenShellV1Integration()
{
    if (isActive())
        release();
}

QWaylandShellSurface *QWaylandFullScreenShellV1Integration::createShellSurface(QWaylandWindow *window)
{
    return new QWaylandFullScreenShellV1Surface(this, window);
}

} // namespace QtWaylandClient

QT_END_NAMESPACE