summaryrefslogtreecommitdiff
path: root/src/events/Popups.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-01-31 00:26:15 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-01-31 00:26:15 +0000
commit11234529dbc5f85fc46df479f563c2c563afe9c2 (patch)
tree97cd16dd56dd8aa779d2961ccd31a1125674e853 /src/events/Popups.cpp
parentf90ff8303b4f2d0c39fe9e3dd35c5b0258491156 (diff)
Simulate mouse movement on unmap of popups and subsurfaces
Diffstat (limited to 'src/events/Popups.cpp')
-rw-r--r--src/events/Popups.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp
index 00a49de0..56ce41a6 100644
--- a/src/events/Popups.cpp
+++ b/src/events/Popups.cpp
@@ -178,6 +178,8 @@ void Events::listener_unmapPopupXDG(void* owner, void* data) {
g_pHyprRenderer->damageBox(lx - extents.x, ly - extents.y, extents.width + 2, extents.height + 2);
PPOPUP->pSurfaceTree = nullptr;
+
+ g_pInputManager->simulateMouseMovement(); // to focus and return back to an appropriate surface
}
void Events::listener_commitPopupXDG(void* owner, void* data) {