KWin
Loading...
Searching...
No Matches
x11_standalone_effects.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2006 Lubos Lunak <l.lunak@kde.org>
6 SPDX-FileCopyrightText: 2010, 2011, 2017 Martin Gräßlin <mgraesslin@kde.org>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10#pragma once
11
13#include "utils/xcbutils.h"
14
15#include <memory.h>
16
17namespace KWin
18{
19class EffectsMouseInterceptionX11Filter;
20class EffectsKeyboardInterceptionX11Filter;
21
23{
24 Q_OBJECT
25public:
26 explicit EffectsHandlerX11(Compositor *compositor, WorkspaceScene *scene);
27 ~EffectsHandlerX11() override;
28
29 void defineCursor(Qt::CursorShape shape) override;
30
31protected:
32 bool doGrabKeyboard() override;
33 void doUngrabKeyboard() override;
34
35 void doStartMouseInterception(Qt::CursorShape shape) override;
36 void doStopMouseInterception() override;
37
38 void doCheckInputWindowStacking() override;
39
40private:
41 Xcb::Window m_mouseInterceptionWindow;
42 std::unique_ptr<EffectsMouseInterceptionX11Filter> m_x11MouseInterception;
43 std::unique_ptr<EffectsKeyboardInterceptionX11Filter> m_x11KeyboardInterception;
44};
45
46}
Manager class that handles all the effects.
WorkspaceScene * scene() const
EffectsHandlerX11(Compositor *compositor, WorkspaceScene *scene)
void doStartMouseInterception(Qt::CursorShape shape) override
void defineCursor(Qt::CursorShape shape) override