xwayland: ignore OR activate requests if surface doesn't want focus

This commit is contained in:
Vaxry 2024-02-17 02:47:01 +00:00
parent e3e7e1fdda
commit cdcc5aba06

View file

@ -1010,6 +1010,9 @@ void Events::listener_activateX11(void* owner, void* data) {
if (g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->getPID() != PWINDOW->getPID()) if (g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->getPID() != PWINDOW->getPID())
return; return;
if (!wlr_xwayland_or_surface_wants_focus(PWINDOW->m_uSurface.xwayland))
return;
g_pCompositor->focusWindow(PWINDOW); g_pCompositor->focusWindow(PWINDOW);
return; return;
} }