From 0ebef9a8ae1753e2eb8c87ccb4ab25c28ed87e1c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 20 Aug 2022 18:00:50 +0200 Subject: [PATCH] no focus to OR Xwayland --- src/events/Windows.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 660b08a2..f9cb8fc4 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -85,6 +85,8 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->m_bRequestsFloat = true; } + PWINDOW->m_bX11ShouldntFocus = PWINDOW->m_bX11ShouldntFocus || (PWINDOW->m_bIsX11 && PWINDOW->m_iX11Type == 2); + if (PWORKSPACE->m_bDefaultFloating) PWINDOW->m_bIsFloating = true;