socket2: add renameWorkspace event

This commit is contained in:
vaxerski 2023-09-05 15:55:20 +02:00
parent 28f1f035b1
commit 2d100bf57e

View file

@ -2359,6 +2359,8 @@ void CCompositor::renameWorkspace(const int& id, const std::string& name) {
Debug::log(LOG, "renameWorkspace: Renaming workspace %d to '%s'", id, name.c_str());
PWORKSPACE->m_szName = name;
g_pEventManager->postEvent({"renameworkspace", std::to_string(PWORKSPACE->m_iID) + "," + PWORKSPACE->m_szName});
}
void CCompositor::setActiveMonitor(CMonitor* pMonitor) {