aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/layout/DwindleLayout.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-04-23 22:11:32 +0200
committervaxerski <[email protected]>2022-04-23 22:11:32 +0200
commit8f3b4aa89c99b0148a7ff0cde28ff88eea76c4a6 (patch)
treefc8c95d83b06014e10d003c9cb4a17c6dc5f673a /src/layout/DwindleLayout.cpp
parent6d8016185abd9b11ad851967eb9e71092d6c0bf2 (diff)
downloadHyprland-8f3b4aa89c99b0148a7ff0cde28ff88eea76c4a6.tar.gz
Hyprland-8f3b4aa89c99b0148a7ff0cde28ff88eea76c4a6.zip
oops, small fix
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
-rw-r--r--src/layout/DwindleLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index f54bef7c..a3fdeecb 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -451,7 +451,7 @@ void CHyprDwindleLayout::onMouseMove(const Vector2D& mousePos) {
DRAGGINGWINDOW->m_vRealPosition.setValueAndWarp(m_vBeginDragPositionXY + DELTA);
} else {
if (DRAGGINGWINDOW->m_bIsFloating) {
- DRAGGINGWINDOW->m_vRealPosition.setValueAndWarp(m_vBeginDragSizeXY + DELTA);
+ DRAGGINGWINDOW->m_vRealSize.setValueAndWarp(m_vBeginDragSizeXY + DELTA);
DRAGGINGWINDOW->m_vRealSize.setValueAndWarp(Vector2D(std::clamp(DRAGGINGWINDOW->m_vRealSize.vec().x, (double)20, (double)999999), std::clamp(DRAGGINGWINDOW->m_vRealSize.vec().y, (double)20, (double)999999)));
g_pXWaylandManager->setWindowSize(DRAGGINGWINDOW, DRAGGINGWINDOW->m_vRealSize.goalv());