From cdcc5aba06f20005842cf966b23af50456dc7142 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 17 Feb 2024 02:47:01 +0000 Subject: [PATCH] xwayland: ignore OR activate requests if surface doesn't want focus --- src/events/Windows.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 3b8c2f0b..df4b8ddb 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -1010,6 +1010,9 @@ void Events::listener_activateX11(void* owner, void* data) { if (g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->getPID() != PWINDOW->getPID()) return; + if (!wlr_xwayland_or_surface_wants_focus(PWINDOW->m_uSurface.xwayland)) + return; + g_pCompositor->focusWindow(PWINDOW); return; }