mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-21 10:48:24 +00:00
dispatchers: disallow togglesplit on fullscreen
This commit is contained in:
@@ -1340,6 +1340,15 @@ void CKeybindManager::changeGroupActive(std::string args) {
|
|||||||
void CKeybindManager::toggleSplit(std::string args) {
|
void CKeybindManager::toggleSplit(std::string args) {
|
||||||
SLayoutMessageHeader header;
|
SLayoutMessageHeader header;
|
||||||
header.pWindow = g_pCompositor->m_pLastWindow;
|
header.pWindow = g_pCompositor->m_pLastWindow;
|
||||||
|
|
||||||
|
if (!header.pWindow)
|
||||||
|
return;
|
||||||
|
|
||||||
|
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(header.pWindow->m_iWorkspaceID);
|
||||||
|
|
||||||
|
if (PWORKSPACE->m_bHasFullscreenWindow)
|
||||||
|
return;
|
||||||
|
|
||||||
g_pLayoutManager->getCurrentLayout()->layoutMessage(header, "togglesplit");
|
g_pLayoutManager->getCurrentLayout()->layoutMessage(header, "togglesplit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user