SineStriker
2023-12-29 76924a335f40a0c3cc13805b4cb9429c336d33ca
src/core/contexts/abstractwindowcontext.cpp
@@ -120,8 +120,9 @@
    }
#ifdef Q_OS_MAC
    void AbstractWindowContext::setSystemButtonArea(const QRect &rect) {
        m_systemButtonArea = rect;
    void
        AbstractWindowContext::setSystemButtonAreaCallback(const ScreenRectCallback &callback) {
        m_systemButtonAreaCallback = callback;
        virtual_hook(SystemButtonAreaChangedHook, nullptr);
    }
#endif
@@ -211,6 +212,10 @@
            }
            case RaiseWindowHook: {
                if (!m_windowHandle)
                    return;
                m_delegate->setWindowVisible(m_host, true);
                Qt::WindowStates state = m_delegate->getWindowState(m_host);
                if (state & Qt::WindowMinimized) {
                    m_delegate->setWindowState(m_host, state & ~Qt::WindowMinimized);