From 95fcfae6dff5af76612e1779ce281075c8dae1db Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Wed, 4 Dec 2024 06:40:19 +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/263 --- xcb/dnotitlebarwindowhelper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xcb/dnotitlebarwindowhelper.cpp b/xcb/dnotitlebarwindowhelper.cpp index 88465c0..e737769 100644 --- a/xcb/dnotitlebarwindowhelper.cpp +++ b/xcb/dnotitlebarwindowhelper.cpp @@ -81,6 +81,10 @@ DNoTitlebarWindowHelper::~DNoTitlebarWindowHelper() { g_pressPoint.remove(this); + if (VtableHook::hasVtable(m_window)) { + VtableHook::resetVtable(m_window); + } + mapped.remove(qobject_cast(parent())); if (m_window->handle()) { // 当本地窗口还存在时,移除设置过的窗口属性