1
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-07-30 11:41:53 -07:00

popup: stop refocusing at unmap

fixes 
This commit is contained in:
Vaxry
2025-01-29 23:05:54 +00:00
parent 6fc9c8e479
commit 09ec1cca51

@@ -138,10 +138,11 @@ void CPopup::onUnmap() {
},
nullptr);
const bool WASLASTFOCUS = g_pSeatManager->state.keyboardFocus == m_pWLSurface->resource() || g_pSeatManager->state.pointerFocus == m_pWLSurface->resource();
// TODO: probably refocus, but without a motion event?
// const bool WASLASTFOCUS = g_pSeatManager->state.keyboardFocus == m_pWLSurface->resource() || g_pSeatManager->state.pointerFocus == m_pWLSurface->resource();
if (WASLASTFOCUS)
g_pInputManager->simulateMouseMovement();
// if (WASLASTFOCUS)
// g_pInputManager->simulateMouseMovement();
}
void CPopup::onCommit(bool ignoreSiblings) {