mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 15:49:50 +01:00
socket2: add renameWorkspace event
This commit is contained in:
parent
28f1f035b1
commit
2d100bf57e
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
Debug::log(LOG, "renameWorkspace: Renaming workspace %d to '%s'", id, name.c_str());
|
||||||
PWORKSPACE->m_szName = name;
|
PWORKSPACE->m_szName = name;
|
||||||
|
|
||||||
|
g_pEventManager->postEvent({"renameworkspace", std::to_string(PWORKSPACE->m_iID) + "," + PWORKSPACE->m_szName});
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCompositor::setActiveMonitor(CMonitor* pMonitor) {
|
void CCompositor::setActiveMonitor(CMonitor* pMonitor) {
|
||||||
|
|
Loading…
Reference in a new issue