From cd2399715d84ac4bfa07acc2afe1ade7a2fbb3a2 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 28 Feb 2023 22:53:41 +0000 Subject: [PATCH] Revert small incorrect change to dragging --- src/managers/input/InputManager.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 7fd186c0..70b42be3 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -302,9 +302,6 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { m_pFoundSurfaceToFocus = foundSurface; } - if (currentlyDraggedWindow && !refocus) - return; - if (pFoundWindow) { // change cursor icon if hovering over border if (*PRESIZEONBORDER && *PRESIZECURSORICON && !pFoundWindow->m_bIsFullscreen && !pFoundWindow->hasPopupAt(mouseCoords)) { @@ -377,9 +374,6 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) { std::erase_if(m_lCurrentlyHeldButtons, [&](const auto& other) { return other == e->button; }); } - if (currentlyDraggedWindow) - return; - switch (m_ecbClickBehavior) { case CLICKMODE_DEFAULT: processMouseDownNormal(e); break; case CLICKMODE_KILL: processMouseDownKill(e); break;