SineStriker
2023-12-20 3871bfc5d3aff45e498fa2944c27e6eb5d146c8e
src/core/contexts/win32windowcontext.cpp
@@ -985,11 +985,18 @@
    }
    void Win32WindowContext::winIdChanged(QWindow *oldWindow, bool isDestroyed) {
        Q_UNUSED(isDestroyed)
        // If the original window id is valid, remove all resources related
        if (windowId) {
        if (isDestroyed) {
            removeManagedWindow(reinterpret_cast<HWND>(windowId));
        } else {
            removeManagedWindow<false>(reinterpret_cast<HWND>(windowId));
        }
            windowId = 0;
        }
        if (!m_windowHandle) {
            return;
        }