binds: add drag_threshold for click/drag isolation (#9839)
--------- Co-authored-by: Leeman <lstrout@enlj.com>
This commit is contained in:
parent
0399e64274
commit
6538970087
7 changed files with 103 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue