diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-28 20:12:17 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-28 20:12:17 +0100 |
| commit | 1a767b021bc0f2b1c2cc7a56d8f70ff1a574cac6 (patch) | |
| tree | 0f2b4c3fcdab74928800cbc400fa248df94eda88 /src | |
| parent | 83e4006b16e79e747888c507243c37eefabe9790 (diff) | |
fix minor focus oopsie
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compositor.cpp | 3 |
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); |
