socket2: emit lockgroups event (#3317)

This commit is contained in:
memchr 2023-09-15 11:06:59 +00:00 committed by GitHub
parent 824290c791
commit 56adec7c1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1925,6 +1925,8 @@ void CKeybindManager::lockGroups(std::string args) {
g_pKeybindManager->m_bGroupsLocked = !g_pKeybindManager->m_bGroupsLocked; g_pKeybindManager->m_bGroupsLocked = !g_pKeybindManager->m_bGroupsLocked;
else else
g_pKeybindManager->m_bGroupsLocked = false; g_pKeybindManager->m_bGroupsLocked = false;
g_pEventManager->postEvent(SHyprIPCEvent{"lockgroups", g_pKeybindManager->m_bGroupsLocked ? "1" : "0"});
} }
void CKeybindManager::lockActiveGroup(std::string args) { void CKeybindManager::lockActiveGroup(std::string args) {