/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2006 Lubos Lunak SPDX-FileCopyrightText: 2010, 2011, 2017 Martin Gräßlin SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef KWIN_EFFECTS_X11_H #define KWIN_EFFECTS_X11_H #include "effects.h" #include "xcbutils.h" #include namespace KWin { class EffectsMouseInterceptionX11Filter; class EffectsHandlerImplX11 : public EffectsHandlerImpl { Q_OBJECT public: explicit EffectsHandlerImplX11(Compositor *compositor, Scene *scene); ~EffectsHandlerImplX11() override; void defineCursor(Qt::CursorShape shape) override; protected: bool doGrabKeyboard() override; void doUngrabKeyboard() override; void doStartMouseInterception(Qt::CursorShape shape) override; void doStopMouseInterception() override; void doCheckInputWindowStacking() override; private: Xcb::Window m_mouseInterceptionWindow; std::unique_ptr m_x11MouseInterception; }; } #endif