summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-09 22:39:23 +0000
committerVaxry <vaxry@vaxry.net>2024-03-09 22:39:23 +0000
commitb0f98a3d3e9e5f5f7f89fa4e855dbeb860e7a0c4 (patch)
tree32b4cf37302cc46940150a16ffc8915af88ac4eb /src/Compositor.cpp
parent2ed032a7fd140ee85483a891fa63c16668019577 (diff)
compositor: reject focus to noFocus OR xwayland windows
fixes #4922
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 5697adbf..f061bf6b 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -930,6 +930,9 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
return;
}
+ if (pWindow && pWindow->m_bIsX11 && pWindow->m_iX11Type == 2 && !wlr_xwayland_or_surface_wants_focus(pWindow->m_uSurface.xwayland))
+ return;
+
g_pLayoutManager->getCurrentLayout()->bringWindowToTop(pWindow);
if (!pWindow || !windowValidMapped(pWindow)) {