Pass events through an active window killer

This commit is contained in:
Martin Gräßlin 2013-07-26 08:02:54 +02:00
parent 1c3e0de31d
commit 206fd10ea8

View file

@ -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);