1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-06 04:58:19 +03:00
latte-dock/app/xwindowinterface.h

46 lines
1.0 KiB
C
Raw Normal View History

2016-12-28 22:27:55 -05:00
#ifndef XWINDOWINTERFACE_H
#define XWINDOWINTERFACE_H
2016-12-29 00:37:53 -05:00
#include "abstractwindowinterface.h"
#include <QObject>
#include <KWindowInfo>
2016-12-29 00:37:53 -05:00
#include <Plasma>
2016-12-28 22:27:55 -05:00
namespace Latte {
2016-12-28 22:27:55 -05:00
class XWindowInterface : public AbstractWindowInterface {
Q_OBJECT
public:
2016-12-28 22:27:55 -05:00
XWindowInterface(QQuickWindow *const view, QObject *parent);
2016-12-30 16:28:39 -05:00
virtual ~XWindowInterface();
2016-12-28 22:27:55 -05:00
void setDockDefaultFlags() override;
2016-12-28 22:27:55 -05:00
WId activeWindow() const override;
WindowInfoWrap requestInfo(WId wid) const override;
WindowInfoWrap requestInfoActive() const override;
bool isOnCurrentDesktop(WId wid) const override;
const std::list<WId> &windows() const override;
void setDockStruts(const QRect &dockRect, Plasma::Types::Location location) const override;
void removeDockStruts() const override;
2016-12-29 00:37:53 -05:00
private:
bool isValidWindow(const KWindowInfo &winfo) const;
2016-12-28 22:27:55 -05:00
void windowChangedProxy(WId wid, NET::Properties prop1, NET::Properties2 prop2);
WId m_desktopId;
};
}
2016-12-28 22:27:55 -05:00
#endif // XWINDOWINTERFACE_H