summaryrefslogtreecommitdiff
path: root/src/desktop/view/LayerSurface.cpp
diff options
context:
space:
mode:
authorBlue <felicisimone9@gmail.com>2026-03-22 00:39:42 +0100
committerGitHub <noreply@github.com>2026-03-21 23:39:42 +0000
commita595d0e3c3aa79f88eea2f84526072a83c03b8ee (patch)
tree6db714b7b2f4a404ab053fa46a1adaaa24e042dc /src/desktop/view/LayerSurface.cpp
parent8726a7363eb9213235e6e23657668e0daac39a5b (diff)
layersurface: simulate mouse movement on layer change (#13747)
Diffstat (limited to 'src/desktop/view/LayerSurface.cpp')
-rw-r--r--src/desktop/view/LayerSurface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/desktop/view/LayerSurface.cpp b/src/desktop/view/LayerSurface.cpp
index c627c411..90de4cdc 100644
--- a/src/desktop/view/LayerSurface.cpp
+++ b/src/desktop/view/LayerSurface.cpp
@@ -336,6 +336,9 @@ void CLayerSurface::onCommit() {
if (m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM)
PMONITOR->m_blurFBDirty = true; // so that blur is recalc'd
+
+ if (g_pSeatManager->m_state.pointerFocus == m_wlSurface->resource())
+ g_pInputManager->simulateMouseMovement();
}
g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->m_id);