diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-06-11 21:52:13 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-06-11 21:52:13 +0200 |
| commit | 6beb79f27b84c36b8b9ef5476d861a94a9071009 (patch) | |
| tree | 54860720b2a564141c1127cb53746a423b5fcda7 /src/managers/input/InputManager.cpp | |
| parent | 64ce06a3536898ddae7146e8f649361ce081c8d6 (diff) | |
xwayland: add force_zero_scaling
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 9f72603f..9dd6e5da 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -330,6 +330,9 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { surfaceLocal = mouseCoords - surfacePos + Vector2D(geom.x, geom.y); } + if (pFoundWindow && pFoundWindow->m_bIsX11) // for x11 force scale zero + surfaceLocal = surfaceLocal * pFoundWindow->m_fX11SurfaceScaledBy; + bool allowKeyboardRefocus = true; if (*PHOGFOCUS && !refocus && g_pCompositor->m_pLastFocus) { |
