core/proxywindow: fix ProxiedWindow proxy pointer after reload

Previously was not updated after reload, causing QsWindowAttached to
use the old window pointer after it had been freed.
This commit is contained in:
outfoxxed 2024-11-29 00:11:56 -08:00
parent 59298f6507
commit 8882f7ca50
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 32 additions and 0 deletions

View file

@ -131,6 +131,8 @@ void ProxyWindowBase::connectWindow() {
generation->registerIncubationController(this->window->incubationController());
}
this->window->setProxy(this);
// clang-format off
QObject::connect(this->window, &QWindow::visibilityChanged, this, &ProxyWindowBase::visibleChanged);
QObject::connect(this->window, &QWindow::xChanged, this, &ProxyWindowBase::xChanged);