disable enabling groups on fullscreen windows

This commit is contained in:
Vaxry 2022-09-20 18:08:10 +01:00
parent 7a9423c782
commit 7f3750bd75

View file

@ -792,8 +792,10 @@ void CHyprDwindleLayout::toggleWindowGroup(CWindow* pWindow) {
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PNODE->workspaceID); const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PNODE->workspaceID);
if (PWORKSPACE->m_bHasFullscreenWindow) if (PWORKSPACE->m_bHasFullscreenWindow && !PNODE->isGroupMember()) {
g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID), false, FULLSCREEN_FULL); Debug::log(ERR, "Cannot enable group on fullscreen window");
return;
}
if (PNODE->isGroupMember()) { if (PNODE->isGroupMember()) {
// dissolve group // dissolve group