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
6#include "qwaylandfullscreenshellv1surface.h"
7
8QT_BEGIN_NAMESPACE
9
10namespace QtWaylandClient {
11
12QWaylandFullScreenShellV1Surface::QWaylandFullScreenShellV1Surface(QtWayland::zwp_fullscreen_shell_v1 *shell, QWaylandWindow *window)
13 : QWaylandShellSurface(window)
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
26QT_END_NAMESPACE
27

source code of qtwayland/src/plugins/shellintegration/fullscreen-shell-v1/qwaylandfullscreenshellv1surface.cpp