2020-08-02 22:22:19 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
2017-08-18 15:32:31 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
|
2017-08-18 15:32:31 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2017-08-18 15:32:31 +00:00
|
|
|
#ifndef KWIN_TABBOX_X11_FILTER_H
|
|
|
|
#define KWIN_TABBOX_X11_FILTER_H
|
|
|
|
#include "x11eventfilter.h"
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
namespace TabBox
|
|
|
|
{
|
|
|
|
|
|
|
|
class X11Filter : public X11EventFilter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit X11Filter();
|
|
|
|
|
|
|
|
bool event(xcb_generic_event_t *event) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool buttonPress(xcb_button_press_event_t *event);
|
2017-09-16 09:30:37 +00:00
|
|
|
void motion(xcb_generic_event_t *event);
|
2017-08-18 15:32:31 +00:00
|
|
|
void keyPress(xcb_generic_event_t *event);
|
|
|
|
void keyRelease(xcb_generic_event_t *event);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|