mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 01:31:54 -07:00
allow focus to grouped windows
This commit is contained in:
@@ -1770,6 +1770,11 @@ void CKeybindManager::focusWindow(std::string regexp) {
|
||||
|
||||
Debug::log(LOG, "Focusing to window name: %s", PWINDOW->m_szTitle.c_str());
|
||||
|
||||
if (PWINDOW->isHidden() && PWINDOW->m_sGroupData.pNextWindow) {
|
||||
// grouped, change the current to us
|
||||
PWINDOW->setGroupCurrent(PWINDOW);
|
||||
}
|
||||
|
||||
g_pCompositor->focusWindow(PWINDOW);
|
||||
|
||||
const auto MIDPOINT = PWINDOW->m_vRealPosition.goalv() + PWINDOW->m_vRealSize.goalv() / 2.f;
|
||||
|
Reference in New Issue
Block a user