summaryrefslogtreecommitdiff
path: root/src/compositor/qmlfiles/WaylandOutputWindow.qml
blob: 4b5a4529dabf45beec62adc942be710f896204f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick

Window {
    id: window
    property QtObject compositor
    property QtObject output
    property bool automaticFrameCallback: false

    Component.onCompleted: {
        if (!compositor) {
            console.warn("WaylandOutputWindow initiated without compositor. This leads to undefined behavior");
            return;
        }
        output = compositor.addOutput(window);
        output.automaticFrameCallbacks = window.automaticFrameCallback;
    }
}