dwindle: fix windows being created at incorrect position when cursor is over reserved area (#4520)

* fix: smart_split not working correctly when creating a window with cursor over reserved area

* use getClosestNodeOnWorkspace instead of getFirstNodeOnWorkspace when hovering over reserved area

* optimize `getClosestNodeOnWorkspace`

* remove unused methods
This commit is contained in:
rszyma 2024-01-26 23:30:36 +01:00 committed by GitHub
parent 08e3519747
commit 12d79d6342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 52 additions and 40 deletions

View file

@ -92,8 +92,6 @@ class Vector2D {
Vector2D floor() const;
Vector2D round() const;
bool inTriangle(const Vector2D& p1, const Vector2D& p2, const Vector2D& p3) const;
};
/**