Enable configure notify event handling

This commit is contained in:
Martin Gräßlin 2013-07-26 10:10:49 +02:00
parent 334cf10d7d
commit e378cb6dba

View file

@ -162,13 +162,13 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e)
} }
#endif #endif
break; break;
#if KWIN_QT5_PORTING case XCB_CONFIGURE_NOTIFY:
case ConfigureNotify: if (reinterpret_cast<xcb_configure_notify_event_t*>(e)->event == rootWindow())
if (e->xconfigure.event == rootWindow())
x_stacking_dirty = true; x_stacking_dirty = true;
break; break;
}; };
#if KWIN_QT5_PORTING
if (Client* c = findClient(WindowMatchPredicate(e->xany.window))) { if (Client* c = findClient(WindowMatchPredicate(e->xany.window))) {
if (c->windowEvent(e)) if (c->windowEvent(e))
return true; return true;
@ -366,8 +366,8 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e)
Cursor::self()->notifyCursorChanged(reinterpret_cast<XFixesCursorNotifyEvent*>(e)->cursor_serial); Cursor::self()->notifyCursorChanged(reinterpret_cast<XFixesCursorNotifyEvent*>(e)->cursor_serial);
} }
break; break;
#endif
} }
#endif
return false; return false;
} }