kwin/src/wayland/output_order_v1_interface.h
Xaver Hugl 0efb8d01db wayland: implement output order interface
Only thing missing is the kscreen integration bit, but that can't be done before kscreen actually stores the output order somewhere.

Depends on https://invent.kde.org/libraries/plasma-wayland-protocols/-/merge_requests/52
2022-12-15 10:08:36 +00:00

35 lines
654 B
C++

/*
SPDX-FileCopyrightText: 2022 Xaver Hugl <xaver.hugl@gmail.com>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#pragma once
#include <QObject>
#include <memory>
namespace KWin
{
class Output;
}
namespace KWaylandServer
{
class Display;
class OutputOrderV1InterfacePrivate;
class OutputOrderV1Interface : public QObject
{
Q_OBJECT
public:
explicit OutputOrderV1Interface(Display *display, QObject *parent);
~OutputOrderV1Interface() override;
void setOutputOrder(const QVector<KWin::Output *> &outputOrder);
private:
std::unique_ptr<OutputOrderV1InterfacePrivate> d;
};
}