Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwaylandfullscreenshellv1surface.cpp
Go to the documentation of this file.
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 <QtWaylandClient/private/qwaylandscreen_p.h>
5
7
9
10namespace QtWaylandClient {
11
14 , m_shell(shell)
15 , m_window(window)
16{
17 auto *screen = m_window->waylandScreen();
18 auto *output = screen ? screen->output() : nullptr;
19 m_shell->present_surface(m_window->wlSurface(),
20 QtWayland::zwp_fullscreen_shell_v1::present_method_default,
21 output);
22}
23
24} // namespace QtWaylandClient
25
QWaylandFullScreenShellV1Surface(QtWayland::zwp_fullscreen_shell_v1 *shell, QWaylandWindow *window)
QWaylandScreen * waylandScreen() const
Combined button and popup list for selecting options.
QScreen * screen
[1]
Definition main.cpp:29
QT_BEGIN_NAMESPACE typedef uchar * output
aWidget window() -> setWindowTitle("New Window Title")
[2]