/* SPDX-FileCopyrightText: 2007 Fredrik Höglund SPDX-License-Identifier: LGPL-2.0-only */ #pragma once #include #include #include #include class CursorNotificationHandler : public QWidget { Q_OBJECT public: CursorNotificationHandler(); ~CursorNotificationHandler() override; QString cursorName(); Q_SIGNALS: void cursorNameChanged(const QString &name); protected: bool x11Event(XEvent *); private: QString cursorName(Atom cursor); private: bool haveXfixes; int fixesEventBase; Atom currentName; QMap names; };