diff --git a/events.cpp b/events.cpp index bcb145916f..909098ea9b 100644 --- a/events.cpp +++ b/events.cpp @@ -223,18 +223,19 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e) } break; } -#if KWIN_QT5_PORTING - case UnmapNotify: { - return (e->xunmap.event != e->xunmap.window); // hide wm typical event from Qt + case XCB_UNMAP_NOTIFY: { + const auto *event = reinterpret_cast(e); + return (event->event != event->window); // hide wm typical event from Qt } - case ReparentNotify: { + case XCB_REPARENT_NOTIFY: { //do not confuse Qt with these events. After all, _we_ are the //window manager who does the reparenting. return true; } - case DestroyNotify: { + case XCB_DESTROY_NOTIFY: { return false; } +#if KWIN_QT5_PORTING case MapRequest: { updateXTime();