summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
-rw-r--r--src/layout/IHyprLayout.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp
index 1315692b..15e1e687 100644
--- a/src/layout/IHyprLayout.cpp
+++ b/src/layout/IHyprLayout.cpp
@@ -519,4 +519,13 @@ CWindow* IHyprLayout::getNextWindowCandidate(CWindow* pWindow) {
return PWINDOWCANDIDATE;
}
+void IHyprLayout::requestFocusForWindow(CWindow* pWindow) {
+ if (pWindow->isHidden() && pWindow->m_sGroupData.pNextWindow) {
+ // grouped, change the current to this window
+ pWindow->setGroupCurrent(pWindow);
+ }
+
+ g_pCompositor->focusWindow(pWindow);
+}
+
IHyprLayout::~IHyprLayout() {}