Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
// Qt-Security score:critical reason:network-protocol
4
5
#
include
"qwaylandqtshellintegration.h"
6
7
#
include
<
QtCore
/
qsize
.
h
>
8
#
include
<
QtCore
/
qdebug
.
h
>
9
10
#
include
<
QtWaylandClient
/
private
/
qwaylanddisplay_p
.
h
>
11
#
include
<
QtWaylandClient
/
private
/
qwaylandwindow_p
.
h
>
12
13
#
include
"qwaylandqtsurface_p.h"
14
15
#
include
<
mutex
>
16
17
#
include
<
unistd
.
h
>
18
19
QT_BEGIN_NAMESPACE
20
21
namespace
QtWaylandClient
{
22
23
QWaylandQtShellIntegration
::
QWaylandQtShellIntegration
()
24
:
QWaylandShellIntegrationTemplate
(1)
25
{
26
QWaylandWindow
::
fixedToplevelPositions
=
false
;
27
}
28
29
QWaylandShellSurface
*
QWaylandQtShellIntegration
::
createShellSurface
(
QWaylandWindow
*
window
)
30
{
31
auto
*
surface
=
surface_create
(
wlSurfaceForWindow
(
window
));
32
return
new
QWaylandQtSurface
(
surface
,
window
);
33
}
34
35
}
36
37
QT_END_NAMESPACE
QtWaylandClient
Definition
qwaylandclientextension.h:16
qtwayland
src
plugins
shellintegration
qt-shell
qwaylandqtshellintegration.cpp
Generated on
for Qt by
1.16.1