2018-12-01 13:52:47 +00:00
|
|
|
/********************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
2020-08-02 22:10:35 +00:00
|
|
|
SPDX-FileCopyrightText: 2018 Martin Flöser <mgraesslin@kde.org>
|
2018-12-01 13:52:47 +00:00
|
|
|
|
2020-08-02 22:10:35 +00:00
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
2018-12-01 13:52:47 +00:00
|
|
|
*********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "input_event_spy.h"
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
|
|
|
class TouchHideCursorSpy : public InputEventSpy
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void pointerEvent(KWin::MouseEvent *event) override;
|
|
|
|
void wheelEvent(KWin::WheelEvent *event) override;
|
2019-08-11 19:57:45 +00:00
|
|
|
void touchDown(qint32 id, const QPointF &pos, quint32 time) override;
|
2018-12-01 13:52:47 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void showCursor();
|
|
|
|
void hideCursor();
|
|
|
|
|
|
|
|
bool m_cursorHidden = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|