Simulate mouse movement on unmap of popups and subsurfaces

This commit is contained in:
vaxerski 2023-01-31 00:26:15 +00:00
parent f90ff8303b
commit 11234529db
4 changed files with 18 additions and 2 deletions

View file

@ -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) {