From 6e48069a88c9f076a5a49e4051a506415df5d597 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 22 Mar 2022 20:13:58 +0100 Subject: [PATCH] fix bug with popups on XWayland --- src/events/Windows.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }