kwin/plugins/platforms/x11/standalone/screens_xrandr.h
Vlad Zahorodnii 79ca5ccd26 Merge OutputScreens into Screens
Since all platforms have been ported to AbstractOutput, OutputScreens
can be merged into Screens. This simplifies the class hierarchy.
2020-12-17 13:36:30 +00:00

40 lines
814 B
C++

/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_SCREENS_XRANDR_H
#define KWIN_SCREENS_XRANDR_H
// kwin
#include "screens.h"
#include "x11eventfilter.h"
namespace KWin
{
class X11StandalonePlatform;
class XRandRScreens : public Screens, public X11EventFilter
{
Q_OBJECT
public:
XRandRScreens(X11StandalonePlatform *backend, QObject *parent = nullptr);
~XRandRScreens() override;
void init() override;
QSize displaySize() const override;
using QObject::event;
bool event(xcb_generic_event_t *event) override;
private:
void updateCount() override;
X11StandalonePlatform *m_backend;
};
} // namespace
#endif