File indexing completed on 2024-11-10 04:57:54

0001 /*
0002     KWin - the KDE window manager
0003     This file is part of the KDE project.
0004 
0005     SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 #include "rootinfo_filter.h"
0010 #include "netinfo.h"
0011 
0012 namespace KWin
0013 {
0014 
0015 RootInfoFilter::RootInfoFilter(RootInfo *parent)
0016     : X11EventFilter(QList<int>{XCB_CLIENT_MESSAGE})
0017     , m_rootInfo(parent)
0018 {
0019 }
0020 
0021 bool RootInfoFilter::event(xcb_generic_event_t *event)
0022 {
0023     NET::Properties dirtyProtocols;
0024     NET::Properties2 dirtyProtocols2;
0025     m_rootInfo->event(event, &dirtyProtocols, &dirtyProtocols2);
0026     return false;
0027 }
0028 
0029 }