core/window: handle graphics context loss

This commit is contained in:
outfoxxed 2025-07-15 15:36:28 -07:00
parent a2146f6394
commit 3dfb7d8827
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 33 additions and 2 deletions

View file

@ -134,6 +134,7 @@ void WindowInterface::connectSignals() const {
auto* window = this->proxyWindow();
// clang-format off
QObject::connect(window, &ProxyWindowBase::closed, this, &WindowInterface::closed);
QObject::connect(window, &ProxyWindowBase::resourcesLost, this, &WindowInterface::resourcesLost);
QObject::connect(window, &ProxyWindowBase::windowConnected, this, &WindowInterface::windowConnected);
QObject::connect(window, &ProxyWindowBase::visibleChanged, this, &WindowInterface::visibleChanged);
QObject::connect(window, &ProxyWindowBase::backerVisibilityChanged, this, &WindowInterface::backingWindowVisibleChanged);