mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 16:45:59 +01:00
input: fix minor issue with holding focus
This commit is contained in:
parent
0fc145c52c
commit
b1426cad28
2 changed files with 3 additions and 2 deletions
|
@ -160,9 +160,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
||||||
}
|
}
|
||||||
} else if (g_pCompositor->m_pLastWindow) {
|
} else if (g_pCompositor->m_pLastWindow) {
|
||||||
foundSurface = g_pCompositor->m_pLastFocus;
|
foundSurface = g_pCompositor->m_pLastFocus;
|
||||||
|
pFoundWindow = g_pCompositor->m_pLastWindow;
|
||||||
|
|
||||||
if (!g_pCompositor->m_pLastWindow->m_bIsX11)
|
if (!g_pCompositor->m_pLastWindow->m_bIsX11)
|
||||||
g_pCompositor->vectorWindowToSurface(mouseCoords, g_pCompositor->m_pLastWindow, surfaceCoords);
|
foundSurface = g_pCompositor->vectorWindowToSurface(mouseCoords, g_pCompositor->m_pLastWindow, surfaceCoords);
|
||||||
else
|
else
|
||||||
surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec();
|
surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue