| 1 | // Copyright (C) 2021 The Qt Company Ltd. |
|---|---|
| 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 "qwaylandqtshellintegration.h" |
| 5 | |
| 6 | #include <QtCore/qsize.h> |
| 7 | #include <QtCore/qdebug.h> |
| 8 | |
| 9 | #include <QtWaylandClient/private/qwaylanddisplay_p.h> |
| 10 | #include <QtWaylandClient/private/qwaylandwindow_p.h> |
| 11 | |
| 12 | #include "qwaylandqtsurface_p.h" |
| 13 | |
| 14 | #include <mutex> |
| 15 | |
| 16 | #include <unistd.h> |
| 17 | |
| 18 | QT_BEGIN_NAMESPACE |
| 19 | |
| 20 | namespace QtWaylandClient { |
| 21 | |
| 22 | QWaylandQtShellIntegration::QWaylandQtShellIntegration() |
| 23 | : QWaylandShellIntegrationTemplate(1) |
| 24 | { |
| 25 | QWaylandWindow::fixedToplevelPositions = false; |
| 26 | } |
| 27 | |
| 28 | QWaylandShellSurface *QWaylandQtShellIntegration::createShellSurface(QWaylandWindow *window) |
| 29 | { |
| 30 | auto *surface = surface_create(wlSurfaceForWindow(window)); |
| 31 | return new QWaylandQtSurface(surface, window); |
| 32 | } |
| 33 | |
| 34 | } |
| 35 | |
| 36 | QT_END_NAMESPACE |
| 37 |
