diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-01-29 23:05:54 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-01-29 23:05:59 +0000 |
| commit | 09ec1cca51e1880dfc855c168a0dd810ff1ddcd6 (patch) | |
| tree | 4abfd91147d518f5fd5795756014612aa553f2c6 /src/desktop/Popup.cpp | |
| parent | 6fc9c8e4797a272c688fc74b872db5d828c21f02 (diff) | |
popup: stop refocusing at unmap
fixes #9018
Diffstat (limited to 'src/desktop/Popup.cpp')
| -rw-r--r-- | src/desktop/Popup.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/desktop/Popup.cpp b/src/desktop/Popup.cpp index 93a810ff..dea94f55 100644 --- a/src/desktop/Popup.cpp +++ b/src/desktop/Popup.cpp @@ -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) { |
