Sine Striker
2023-12-20 669ea85c57567624e687d92898266f78bb55f1fa
src/core/contexts/cocoawindowcontext.mm
@@ -403,12 +403,19 @@
        AbstractWindowContext::virtual_hook(id, data);
    }
    void CocoaWindowContext::winIdChanged(QWindow *oldWindow, bool isDestroyed) {
        releaseWindowProxy(windowId);
    void CocoaWindowContext::winIdChanged() {
        // If the original window id is valid, remove all resources related
        if (windowId) {
            releaseWindowProxy(windowId);
            windowId = 0;
            cocoaWindowEventFilter.reset();
        }
        if (!m_windowHandle) {
            return;
        }
        // Allocate new resources
        windowId = m_windowHandle->winId();
        ensureWindowProxy(windowId)->setSystemTitleBarVisible(false);
        cocoaWindowEventFilter = std::make_unique<CocoaWindowEventFilter>(this, this);