From 7a54badb4a5782c551deb2919f3c489fdb4fbc02 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周日, 03 12月 2023 17:17:40 +0800 Subject: [PATCH] Add snap layout handling --- src/core/contexts/abstractwindowcontext_p.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/core/contexts/abstractwindowcontext_p.h b/src/core/contexts/abstractwindowcontext_p.h index 4c04734..83ad768 100644 --- a/src/core/contexts/abstractwindowcontext_p.h +++ b/src/core/contexts/abstractwindowcontext_p.h @@ -2,6 +2,7 @@ #define ABSTRACTWINDOWCONTEXT_P_H #include <array> +#include <memory> #include <QtCore/QSet> #include <QtGui/QWindow> @@ -39,10 +40,11 @@ void showSystemMenu(const QPoint &pos); QRegion hitTestShape() const; + bool isInSystemButtons(const QPoint &pos, CoreWindowAgent::SystemButton *button) const; protected: QWindow *m_windowHandle; - WindowItemDelegate *m_delegate; + std::unique_ptr<WindowItemDelegate> m_delegate; QSet<QObject *> m_hitTestVisibleItems; QList<QRect> m_hitTestVisibleRects; -- Gitblit v1.9.1