diff options
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 8f59f8e1..8d24e8dd 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1692,6 +1692,10 @@ void CCompositor::warpCursorTo(const Vector2D& pos) { return; wlr_cursor_warp(m_sWLRCursor, m_sSeat.mouse->mouse, pos.x, pos.y); + + const auto PMONITORNEW = getMonitorFromVector(pos); + if (PMONITORNEW != m_pLastMonitor) + m_pLastMonitor = PMONITORNEW; } SLayerSurface* CCompositor::getLayerSurfaceFromWlr(wlr_layer_surface_v1* pLS) { |
