summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-08 13:19:57 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-08 13:19:57 +0200
commit84820631579178854db2ed5bce064bcfe8490ed9 (patch)
treea193abd8776e232134eedb3f9ccb50a887ea2651 /src/Compositor.cpp
parent92e17f29256af4db05ebd17b9f2d013ee3ca37ab (diff)
fixed layersurface focus quirks
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 f359f577..e1c5ef55 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -619,6 +619,9 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) {
Debug::log(LOG, "Set keyboard focus to surface %x, with window name: %s", pSurface, pWindowOwner->m_szTitle.c_str());
else
Debug::log(LOG, "Set keyboard focus to surface %x", pSurface);
+
+ g_pXWaylandManager->activateSurface(pSurface, false);
+ m_pLastFocus = pSurface;
}
bool CCompositor::windowValidMapped(CWindow* pWindow) {