Disable updating rootInfo for property notify or client message
This needs porting in KWindowSystem first.
This commit is contained in:
parent
206fd10ea8
commit
d81c45a810
1 changed files with 4 additions and 1 deletions
|
@ -87,8 +87,9 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#warning NETRootInfo::event() needs porting to XCB
|
||||||
#if KWIN_QT5_PORTING
|
#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 ];
|
unsigned long dirty[ NETRootInfo::PROPERTIES_SIZE ];
|
||||||
rootInfo()->event(e, dirty, NETRootInfo::PROPERTIES_SIZE);
|
rootInfo()->event(e, dirty, NETRootInfo::PROPERTIES_SIZE);
|
||||||
if (dirty[ NETRootInfo::PROTOCOLS ] & NET::DesktopNames)
|
if (dirty[ NETRootInfo::PROTOCOLS ] & NET::DesktopNames)
|
||||||
|
@ -96,7 +97,9 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e)
|
||||||
if (dirty[ NETRootInfo::PROTOCOLS2 ] & NET::WM2DesktopLayout)
|
if (dirty[ NETRootInfo::PROTOCOLS2 ] & NET::WM2DesktopLayout)
|
||||||
VirtualDesktopManager::self()->updateLayout();
|
VirtualDesktopManager::self()->updateLayout();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if KWIN_QT5_PORTING
|
||||||
// events that should be handled before Clients can get them
|
// events that should be handled before Clients can get them
|
||||||
switch(e->type) {
|
switch(e->type) {
|
||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
|
|
Loading…
Reference in a new issue