Plasma5Support

cursornotificationhandler.h
1/*
2 SPDX-FileCopyrightText: 2007 Fredrik Höglund <fredrik@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#pragma once
8
9#include <QMap>
10#include <QWidget>
11
12#include <X11/Xlib.h>
13#include <fixx11h.h>
14
15class CursorNotificationHandler : public QWidget
16{
18
19public:
20 CursorNotificationHandler();
21 ~CursorNotificationHandler() override;
22
23 QString cursorName();
24
26 void cursorNameChanged(const QString &name);
27
28protected:
29 bool x11Event(XEvent *);
30
31private:
32 QString cursorName(Atom cursor);
33
34private:
35 bool haveXfixes;
36 int fixesEventBase;
37 Atom currentName;
39};
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.