Skip to content

Commit

Permalink
fix: app crashed for DNotitebarWindowHelper
Browse files Browse the repository at this point in the history
DNotitebarWindowHelper is delete by manual instead of Window
deleted, so we need to resetVtable.

pms: BUG-368399
  • Loading branch information
18202781743 authored and FeiWang1119 committed Dec 4, 2024
1 parent 51dcc1b commit 117574e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xcb/dnotitlebarwindowhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ DNoTitlebarWindowHelper::~DNoTitlebarWindowHelper()
{
g_pressPoint.remove(this);

if (VtableHook::hasVtable(m_window)) {
VtableHook::resetVtable(m_window);
}

mapped.remove(qobject_cast<QWindow*>(parent()));

if (m_window->handle()) { // 当本地窗口还存在时,移除设置过的窗口属性
Expand Down

0 comments on commit 117574e

Please sign in to comment.