mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 08:29:50 +01:00
parent
ef94375882
commit
62efc045d7
1 changed files with 1 additions and 4 deletions
|
@ -204,10 +204,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
||||||
foundSurface = g_pCompositor->m_pLastFocus;
|
foundSurface = g_pCompositor->m_pLastFocus;
|
||||||
pFoundWindow = g_pCompositor->m_pLastWindow;
|
pFoundWindow = g_pCompositor->m_pLastWindow;
|
||||||
|
|
||||||
if (!g_pCompositor->m_pLastWindow->m_bIsX11)
|
surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec();
|
||||||
foundSurface = g_pCompositor->vectorWindowToSurface(mouseCoords, g_pCompositor->m_pLastWindow, surfaceCoords);
|
|
||||||
else
|
|
||||||
surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec();
|
|
||||||
|
|
||||||
m_bFocusHeldByButtons = true;
|
m_bFocusHeldByButtons = true;
|
||||||
m_bRefocusHeldByButtons = refocus;
|
m_bRefocusHeldByButtons = refocus;
|
||||||
|
|
Loading…
Reference in a new issue