diff --git a/xcb/dnotitlebarwindowhelper.cpp b/xcb/dnotitlebarwindowhelper.cpp index 1a6b898d..e7377691 100644 --- a/xcb/dnotitlebarwindowhelper.cpp +++ b/xcb/dnotitlebarwindowhelper.cpp @@ -514,6 +514,12 @@ bool DNoTitlebarWindowHelper::windowEvent(QEvent *event) { QWindow *w = this->window(); + // TODO Crashed when delete by Vtable. + if (event->type() == QEvent::DeferredDelete) { + VtableHook::resetVtable(w); + return w->event(event); + } + // get touch begin position static bool isTouchDown = false; static QPointF touchBeginPosition;