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() {}
bool ProxyPopupWindow::deleteOnInvisible() const {
// Currently crashes in normal mode, do not have the time to debug it now.
return true;
}
qint32 ProxyPopupWindow::x() const {
// QTBUG-121550
auto basepos = this->mParentProxyWindow == nullptr ? 0 : this->mParentProxyWindow->x();

View File

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