core/popup: force window destruction to avoid crashes

This commit is contained in:
outfoxxed 2024-03-28 02:29:29 -07:00
parent c3fe93efe6
commit 439788fce0
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,11 @@ void ProxyPopupWindow::completeWindow() {
void ProxyPopupWindow::postCompleteWindow() {} void ProxyPopupWindow::postCompleteWindow() {}
bool ProxyPopupWindow::deleteOnInvisible() const {
// Currently crashes in normal mode, do not have the time to debug it now.
return true;
}
qint32 ProxyPopupWindow::x() const { qint32 ProxyPopupWindow::x() const {
// QTBUG-121550 // QTBUG-121550
auto basepos = this->mParentProxyWindow == nullptr ? 0 : this->mParentProxyWindow->x(); auto basepos = this->mParentProxyWindow == nullptr ? 0 : this->mParentProxyWindow->x();

View file

@ -64,6 +64,7 @@ public:
void completeWindow() override; void completeWindow() override;
void postCompleteWindow() override; void postCompleteWindow() override;
[[nodiscard]] bool deleteOnInvisible() const override;
void setScreen(QuickshellScreenInfo* screen) override; void setScreen(QuickshellScreenInfo* screen) override;
void setVisible(bool visible) override; void setVisible(bool visible) override;