summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 20:13:58 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 20:13:58 +0100
commit6e48069a88c9f076a5a49e4051a506415df5d597 (patch)
treee1dbbbb8574ac198986376e9648591be989d7074 /src/events/Windows.cpp
parent90bb8e64412cf6dcf3095e059e6d7a9e92dc5df0 (diff)
fix bug with popups on XWayland
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 732bd2a4..a732d032 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -64,7 +64,9 @@ void Events::listener_unmapWindow(wl_listener* listener, void* data) {
g_pCompositor->removeWindowFromVectorSafe(PWINDOW);
// refocus on a new window
- g_pInputManager->refocus();
+ // TODO: investigate.
+ // If a parent window has focus, any popups (XWayland) will be broken (they will disappear instantly)
+ // g_pInputManager->refocus();
Debug::log(LOG, "Window %x unmapped", PWINDOW);
}