mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 04: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
|
@ -2164,7 +2164,7 @@ SLayerSurface* CCompositor::getLayerSurfaceFromSurface(wlr_surface* pSurface) {
|
|||
return;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
if (!ls->layerSurface || !ls->mapped)
|
||||
continue;
|
||||
|
||||
|
|
|
@ -160,9 +160,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
|||
}
|
||||
} else if (g_pCompositor->m_pLastWindow) {
|
||||
foundSurface = g_pCompositor->m_pLastFocus;
|
||||
pFoundWindow = g_pCompositor->m_pLastWindow;
|
||||
|
||||
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
|
||||
surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec();
|
||||
|
||||
|
|
Loading…
Reference in a new issue