From 206fd10ea8dbc6d9138a2feaa4b0fadc1316ee52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 26 Jul 2013 08:02:54 +0200 Subject: [PATCH] Pass events through an active window killer --- events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events.cpp b/events.cpp index 1ddc795c36..5dde22882a 100644 --- a/events.cpp +++ b/events.cpp @@ -81,13 +81,13 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e) && (eventType == XCB_KEY_PRESS || eventType == XCB_KEY_RELEASE)) return false; // let Qt process it, it'll be intercepted again in eventFilter() -#if KWIN_QT5_PORTING - if (!m_windowKiller.isNull() && m_windowKiller->isActive() && m_windowKiller->isResponsibleForEvent(e->type)) { + if (!m_windowKiller.isNull() && m_windowKiller->isActive() && m_windowKiller->isResponsibleForEvent(eventType)) { m_windowKiller->processEvent(e); // filter out the event return true; } +#if KWIN_QT5_PORTING if (e->type == PropertyNotify || e->type == ClientMessage) { unsigned long dirty[ NETRootInfo::PROPERTIES_SIZE ]; rootInfo()->event(e, dirty, NETRootInfo::PROPERTIES_SIZE);