From 0e083e886f02034c56b851649a6c27f55fe85e32 Mon Sep 17 00:00:00 2001 From: Bastien Souchu Date: Tue, 10 Mar 2026 20:36:47 +0100 Subject: algo/dwindle: fix precise mouse setting (#13678) --- src/layout/supplementary/DragController.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/layout/supplementary/DragController.cpp') diff --git a/src/layout/supplementary/DragController.cpp b/src/layout/supplementary/DragController.cpp index 4257c913..79036186 100644 --- a/src/layout/supplementary/DragController.cpp +++ b/src/layout/supplementary/DragController.cpp @@ -204,32 +204,6 @@ void CDragStateController::dragEnd() { } if (m_draggingTiled) { - // static auto PPRECISEMOUSE = CConfigValue("dwindle:precise_mouse_move"); - - // FIXME: remove or rethink - // if (*PPRECISEMOUSE) { - // eDirection direction = DIRECTION_DEFAULT; - - // const auto MOUSECOORDS = g_pInputManager->getMouseCoordsInternal(); - // const PHLWINDOW pReferenceWindow = - // g_pCompositor->vectorToWindowUnified(MOUSECOORDS, Desktop::View::RESERVED_EXTENTS | Desktop::View::INPUT_EXTENTS | Desktop::View::ALLOW_FLOATING, DRAGGINGWINDOW); - - // if (pReferenceWindow && pReferenceWindow != DRAGGINGWINDOW) { - // const Vector2D draggedCenter = DRAGGINGWINDOW->m_realPosition->goal() + DRAGGINGWINDOW->m_realSize->goal() / 2.f; - // const Vector2D referenceCenter = pReferenceWindow->m_realPosition->goal() + pReferenceWindow->m_realSize->goal() / 2.f; - // const float xDiff = draggedCenter.x - referenceCenter.x; - // const float yDiff = draggedCenter.y - referenceCenter.y; - - // if (fabs(xDiff) > fabs(yDiff)) - // direction = xDiff < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT; - // else - // direction = yDiff < 0 ? DIRECTION_UP : DIRECTION_DOWN; - // } - - // onWindowRemovedTiling(DRAGGINGWINDOW); - // onWindowCreatedTiling(DRAGGINGWINDOW, direction); - // } else - // make sure to check if we are floating because drag into group could make us tiled already if (draggingTarget->floating()) g_layoutManager->changeFloatingMode(draggingTarget); -- cgit v1.2.3