mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
649 B
39 lines
649 B
/* |
|
SPDX-FileCopyrightText: 2007 Fredrik Höglund <[email protected]> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-only |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <QMap> |
|
#include <QWidget> |
|
|
|
#include <X11/Xlib.h> |
|
#include <fixx11h.h> |
|
|
|
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<Atom, QString> names; |
|
};
|
|
|