Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwaylandqtshellintegration.cpp
Go to the documentation of this file.
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
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
19
20namespace QtWaylandClient {
21
24{
26}
27
29{
30 auto *surface = surface_create(wlSurfaceForWindow(window));
31 return new QWaylandQtSurface(surface, window);
32}
33
34}
35
QWaylandShellSurface * createShellSurface(QWaylandWindow *window) override
static wl_surface * wlSurfaceForWindow(QWaylandWindow *window)
Combined button and popup list for selecting options.
aWidget window() -> setWindowTitle("New Window Title")
[2]