From b9b6ea310deafa5b2200cb3a49dd6c4b33a15d96 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Fri, 29 Nov 2024 10:14:17 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5platform-plugins Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: https://github.com/linuxdeepin/qt5platform-plugins/pull/260 --- xcb/dnotitlebarwindowhelper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xcb/dnotitlebarwindowhelper.cpp b/xcb/dnotitlebarwindowhelper.cpp index 1a6b898..e737769 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;