diff options
| author | alaricljs <me@mooluv.com> | 2025-04-12 10:43:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-12 16:43:13 +0200 |
| commit | 65389700878640fa0e90419b9cf34f48e4186fca (patch) | |
| tree | 55a818c23406da1742599cb2f38ba35d1fc09a6a /src/layout/IHyprLayout.hpp | |
| parent | 0399e64274ae5c05a7a40ad78e4d4852d9957e99 (diff) | |
binds: add drag_threshold for click/drag isolation (#9839)
---------
Co-authored-by: Leeman <lstrout@enlj.com>
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
| -rw-r--r-- | src/layout/IHyprLayout.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index e31bb63e..f85fc52a 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -204,6 +204,13 @@ class IHyprLayout { virtual Vector2D predictSizeForNewWindow(PHLWINDOW pWindow); virtual Vector2D predictSizeForNewWindowFloating(PHLWINDOW pWindow); + /* + Called to try to pick up window for dragging. + Updates drag related variables and floats window if threshold reached. + Return true to reject + */ + virtual bool updateDragWindow(); + private: int m_iMouseMoveEventCount; Vector2D m_vBeginDragXY; |
