summaryrefslogtreecommitdiffstats
path: root/tests/auto/client/shared/fullscreenshellv1.cpp
blob: 24468e14bf4064427942c09b092080caa8da4794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2021 David Edmundson <davidedmundson@kde.org>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include "fullscreenshellv1.h"

namespace MockCompositor {

FullScreenShellV1::FullScreenShellV1(CoreCompositor *compositor)
{
    init(compositor->m_display, 1);
}

void FullScreenShellV1::zwp_fullscreen_shell_v1_present_surface(Resource *resource, struct ::wl_resource *surface, uint32_t method, struct ::wl_resource *output)
{
    Q_UNUSED(resource);
    Q_UNUSED(method);
    Q_UNUSED(output);

    m_surfaces.append(fromResource<Surface>(surface));
}

} // namespace MockCompositor