summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index e1fb60cb..749c9d27 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -829,10 +829,7 @@ 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);
- }
+ g_pLayoutManager->getCurrentLayout()->bringWindowToTop(pWindow);
if (!pWindow || !windowValidMapped(pWindow)) {
const auto PLASTWINDOW = m_pLastWindow;
@@ -2171,7 +2168,7 @@ CWindow* CCompositor::getWindowByRegex(const std::string& regexp) {
}
for (auto& w : g_pCompositor->m_vWindows) {
- if (!w->m_bIsMapped || (w->isHidden() && !w->m_sGroupData.pNextWindow))
+ if (!w->m_bIsMapped || (w->isHidden() && !g_pLayoutManager->getCurrentLayout()->isWindowReachable(w.get())))
continue;
switch (mode) {