KWin
Loading...
Searching...
No Matches
src
rootinfo_filter.cpp
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: 2017 Martin Flöser <mgraesslin@kde.org>
6
7
SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
#include "
rootinfo_filter.h
"
10
#include "
netinfo.h
"
11
12
namespace
KWin
13
{
14
15
RootInfoFilter::RootInfoFilter
(
RootInfo
*parent)
16
:
X11EventFilter
(QList<int>{XCB_CLIENT_MESSAGE})
17
, m_rootInfo(parent)
18
{
19
}
20
21
bool
RootInfoFilter::event
(xcb_generic_event_t *event)
22
{
23
NET::Properties dirtyProtocols;
24
NET::Properties2 dirtyProtocols2;
25
m_rootInfo->event(
event
, &dirtyProtocols, &dirtyProtocols2);
26
return
false
;
27
}
28
29
}
KWin::RootInfoFilter::event
bool event(xcb_generic_event_t *event) override
Definition
rootinfo_filter.cpp:21
KWin::RootInfoFilter::RootInfoFilter
RootInfoFilter(RootInfo *parent)
Definition
rootinfo_filter.cpp:15
KWin::RootInfo
Definition
netinfo.h:30
KWin::X11EventFilter
Definition
x11eventfilter.h:22
KWin
Definition
activation_test.cpp:20
netinfo.h
rootinfo_filter.h
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0