summaryrefslogtreecommitdiff
path: root/src/events/Popups.cpp
diff options
context:
space:
mode:
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) {