summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-28 20:12:17 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-28 20:12:17 +0100
commit1a767b021bc0f2b1c2cc7a56d8f70ff1a574cac6 (patch)
tree0f2b4c3fcdab74928800cbc400fa248df94eda88 /src/Compositor.cpp
parent83e4006b16e79e747888c507243c37eefabe9790 (diff)
fix minor focus oopsie
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 2 insertions, 1 deletions
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);