summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-17 02:47:01 +0000
committerVaxry <vaxry@vaxry.net>2024-02-17 02:47:07 +0000
commitcdcc5aba06f20005842cf966b23af50456dc7142 (patch)
tree2334075ef9a61fc2e25d8a43cae3f9427f590105 /src/events/Windows.cpp
parente3e7e1fdda7660a70bd206aa3ed6a45bb4000376 (diff)
xwayland: ignore OR activate requests if surface doesn't want focus
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}