mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
@@ -351,6 +351,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
|||||||
if (pFoundWindow) {
|
if (pFoundWindow) {
|
||||||
if (!pFoundWindow->m_bIsX11) {
|
if (!pFoundWindow->m_bIsX11) {
|
||||||
foundSurface = g_pCompositor->vectorWindowToSurface(mouseCoords, pFoundWindow, surfaceCoords);
|
foundSurface = g_pCompositor->vectorWindowToSurface(mouseCoords, pFoundWindow, surfaceCoords);
|
||||||
|
if (!foundSurface) {
|
||||||
|
foundSurface = pFoundWindow->m_pWLSurface->resource();
|
||||||
|
surfacePos = pFoundWindow->m_vRealPosition.value();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
foundSurface = pFoundWindow->m_pWLSurface->resource();
|
foundSurface = pFoundWindow->m_pWLSurface->resource();
|
||||||
surfacePos = pFoundWindow->m_vRealPosition.value();
|
surfacePos = pFoundWindow->m_vRealPosition.value();
|
||||||
|
Reference in New Issue
Block a user