From 1a767b021bc0f2b1c2cc7a56d8f70ff1a574cac6 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 28 Oct 2022 20:12:17 +0100 Subject: [PATCH] fix minor focus oopsie --- src/Compositor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 890c20f6..dd1f2fb8 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -752,7 +752,8 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { if (windowValidMapped(PLASTWINDOW)) { updateWindowAnimatedDecorationValues(PLASTWINDOW); - g_pXWaylandManager->activateWindow(PLASTWINDOW, false); + if (!pWindow->m_bIsX11 || pWindow->m_iX11Type == 1) + g_pXWaylandManager->activateWindow(PLASTWINDOW, false); if (PLASTWINDOW->m_phForeignToplevel) wlr_foreign_toplevel_handle_v1_set_activated(PLASTWINDOW->m_phForeignToplevel, false);