2021-04-04 14:11:13 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
2021-07-21 10:11:21 +00:00
|
|
|
SPDX-FileCopyrightText: 2021 Méven Car <meven.car@enioka.com>
|
2021-04-04 14:11:13 +00:00
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "abstract_wayland_output.h"
|
|
|
|
|
2021-07-21 10:11:21 +00:00
|
|
|
#include <KWaylandServer/outputdevice_v2_interface.h>
|
2021-05-02 15:45:50 +00:00
|
|
|
#include <KWaylandServer/utils.h>
|
2021-04-04 14:11:13 +00:00
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
|
|
|
class WaylandOutputDevice : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit WaylandOutputDevice(AbstractWaylandOutput *output, QObject *parent = nullptr);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void handleGeometryChanged();
|
|
|
|
void handleScaleChanged();
|
|
|
|
void handleEnabledChanged();
|
|
|
|
void handleTransformChanged();
|
2021-07-21 10:11:21 +00:00
|
|
|
void handleCurrentModeChanged();
|
2021-04-11 14:26:21 +00:00
|
|
|
void handleCapabilitiesChanged();
|
|
|
|
void handleOverscanChanged();
|
2021-02-20 15:04:18 +00:00
|
|
|
void handleVrrPolicyChanged();
|
2021-07-21 10:11:21 +00:00
|
|
|
void handleModesChanged();
|
2021-04-04 14:11:13 +00:00
|
|
|
|
|
|
|
private:
|
2021-07-21 10:11:21 +00:00
|
|
|
void updateModes(AbstractWaylandOutput *output);
|
|
|
|
|
2021-04-04 14:11:13 +00:00
|
|
|
AbstractWaylandOutput *m_platformOutput;
|
2021-07-21 10:11:21 +00:00
|
|
|
KWaylandServer::ScopedGlobalPointer<KWaylandServer::OutputDeviceV2Interface> m_outputDeviceV2;
|
2021-04-04 14:11:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace KWin
|