From d81c45a81061457b24cbd0df3c5bf5752cdcd0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 26 Jul 2013 08:06:36 +0200 Subject: [PATCH] Disable updating rootInfo for property notify or client message This needs porting in KWindowSystem first. --- events.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/events.cpp b/events.cpp index 5dde22882a..5150c5f532 100644 --- a/events.cpp +++ b/events.cpp @@ -87,8 +87,9 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e) return true; } +#warning NETRootInfo::event() needs porting to XCB #if KWIN_QT5_PORTING - if (e->type == PropertyNotify || e->type == ClientMessage) { + if (eventType == XCB_PROPERTY_NOTIFY || eventType == XCB_CLIENT_MESSAGE) { unsigned long dirty[ NETRootInfo::PROPERTIES_SIZE ]; rootInfo()->event(e, dirty, NETRootInfo::PROPERTIES_SIZE); if (dirty[ NETRootInfo::PROTOCOLS ] & NET::DesktopNames) @@ -96,7 +97,9 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e) if (dirty[ NETRootInfo::PROTOCOLS2 ] & NET::WM2DesktopLayout) VirtualDesktopManager::self()->updateLayout(); } +#endif +#if KWIN_QT5_PORTING // events that should be handled before Clients can get them switch(e->type) { case ButtonPress: