diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-03-02 15:25:32 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-03-02 15:25:32 +0000 |
| commit | 8811f4b69ade469285635c539f20194d717c8e17 (patch) | |
| tree | cc48dbe53020d03aecd7c154a9e215720d1cfe3b /src/layout/IHyprLayout.cpp | |
| parent | 52db21660801ef4300a8b3c5dbb5c7e244ed2d19 (diff) | |
drag: check min size for reisze drags
fixes #4920
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 106b5751..46ae3807 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -337,7 +337,7 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { } else if (g_pInputManager->dragMode == MBIND_RESIZE || g_pInputManager->dragMode == MBIND_RESIZE_FORCE_RATIO || g_pInputManager->dragMode == MBIND_RESIZE_BLOCK_RATIO) { if (DRAGGINGWINDOW->m_bIsFloating) { - Vector2D MINSIZE = Vector2D(20, 20); + Vector2D MINSIZE = g_pXWaylandManager->getMinSizeForWindow(DRAGGINGWINDOW).clamp({20, 20}); Vector2D MAXSIZE = g_pXWaylandManager->getMaxSizeForWindow(DRAGGINGWINDOW); Vector2D newSize = m_vBeginDragSizeXY; |
