kwin/plugins/platforms/x11/standalone/effects_x11.h

48 lines
1.1 KiB
C
Raw Normal View History

2020-08-02 22:22:19 +00:00
/*
KWin - the KDE window manager
This file is part of the KDE project.
2020-08-02 22:22:19 +00:00
SPDX-FileCopyrightText: 2006 Lubos Lunak <l.lunak@kde.org>
SPDX-FileCopyrightText: 2010, 2011, 2017 Martin Gräßlin <mgraesslin@kde.org>
2020-08-02 22:22:19 +00:00
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 <memory.h>
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<EffectsMouseInterceptionX11Filter> m_x11MouseInterception;
};
}
#endif