aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-23 17:20:39 +0100
committervaxerski <[email protected]>2023-09-23 17:20:39 +0100
commit3b445ec849b96f48219647478e60a91e175c48d8 (patch)
treefd801cf5447db0211af3456c50ad00ad9bf14eb1
parent82529573929178a71e1e65bd315950c1e179254e (diff)
downloadHyprland-3b445ec849b96f48219647478e60a91e175c48d8.tar.gz
Hyprland-3b445ec849b96f48219647478e60a91e175c48d8.zip
input: avoid using the wrong surface in drag focus force
-rw-r--r--src/managers/input/InputManager.cpp2
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;