Sine Striker
2024-05-07 e95e2bfd29b64d3144515c30fb9cf76adb75c6c3
src/core/contexts/win32windowcontext_p.h
@@ -33,6 +33,7 @@
            FixedBorder,
            TitleBar,
        };
        Q_ENUM(WindowPart)
        QString key() const override;
        void virtual_hook(int id, void *data) override;
@@ -40,7 +41,7 @@
        QVariant windowAttribute(const QString &key) const override;
    protected:
        void winIdChanged() override;
        void winIdChanged(WId winId, WId oldWinId) override;
        bool windowAttributeChanged(const QString &key, const QVariant &attribute,
                                    const QVariant &oldAttribute) override;
@@ -64,16 +65,15 @@
                                      LRESULT *result);
    protected:
        WId windowId = 0;
        // The last hit test result, helpful to handle WM_MOUSEMOVE and WM_NCMOUSELEAVE.
        WindowPart lastHitTestResult = WindowPart::Outside;
        int lastHitTestResultRaw = HTNOWHERE;
        // Whether the last mouse leave message is blocked, mainly for handling the unexpected
        // WM_MOUSELEAVE.
        bool mouseLeaveBlocked = false;
        bool initialCentered = false;
        uint64_t iconButtonClickTime = 0;
    };
}