/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2017 Martin Flöser SPDX-License-Identifier: GPL-2.0-or-later */ #include "was_user_interaction_x11_filter.h" #include "workspace.h" #include namespace KWin { WasUserInteractionX11Filter::WasUserInteractionX11Filter() : X11EventFilter(QVector{XCB_KEY_PRESS, XCB_KEY_RELEASE, XCB_BUTTON_PRESS, XCB_BUTTON_RELEASE}) { } bool WasUserInteractionX11Filter::event(xcb_generic_event_t *event) { Q_UNUSED(event); workspace()->setWasUserInteraction(); return false; } }