KWin
Loading...
Searching...
No Matches
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
12namespace KWin
13{
14
16 : X11EventFilter(QList<int>{XCB_CLIENT_MESSAGE})
17 , m_rootInfo(parent)
18{
19}
20
21bool 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}
bool event(xcb_generic_event_t *event) override
RootInfoFilter(RootInfo *parent)