/* SPDX-FileCopyrightText: 2016 Marco Martin SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include #include class QScreen; class DesktopView : public QWindow { Q_OBJECT public: explicit DesktopView(Plasma::Corona *c, QScreen *targetScreen = nullptr); ~DesktopView() override; /*This is different from screen() as is always there, even if the window is temporarily outside the screen or if is hidden: only plasmashell will ever change this property, unlike QWindow::screen()*/ void setScreenToFollow(QScreen *screen); QScreen *screenToFollow() const; private: QPointer m_screenToFollow; };