diff options
author | vaxerski <[email protected]> | 2023-09-23 17:20:39 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-23 17:20:39 +0100 |
commit | 3b445ec849b96f48219647478e60a91e175c48d8 (patch) | |
tree | fd801cf5447db0211af3456c50ad00ad9bf14eb1 | |
parent | 82529573929178a71e1e65bd315950c1e179254e (diff) | |
download | Hyprland-3b445ec849b96f48219647478e60a91e175c48d8.tar.gz Hyprland-3b445ec849b96f48219647478e60a91e175c48d8.zip |
input: avoid using the wrong surface in drag focus force
-rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 866eb440..ab633bc5 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -189,7 +189,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { if (!m_sDrag.drag && !m_lCurrentlyHeldButtons.empty() && g_pCompositor->m_pLastFocus) { if (m_bLastFocusOnLS) { - foundSurface = g_pCompositor->m_pLastFocus; + foundSurface = m_pLastMouseSurface; pFoundLayerSurface = g_pCompositor->getLayerSurfaceFromSurface(foundSurface); if (pFoundLayerSurface) { surfacePos = g_pCompositor->getLayerSurfaceFromSurface(foundSurface)->position; |