mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 01:02:51 +01:00
parent
9d7d5ec3c8
commit
a99f314106
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue