summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index f2fcceff..ab38bd09 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -832,6 +832,11 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
return;
}
+ if (pWindow && pWindow->isHidden() && pWindow->m_sGroupData.pNextWindow) {
+ // grouped, change the current to us
+ pWindow->setGroupCurrent(pWindow);
+ }
+
if (!pWindow || !windowValidMapped(pWindow)) {
const auto PLASTWINDOW = m_pLastWindow;
m_pLastWindow = nullptr;