hyprland/workspaces: refresh locally instead of reloading Hyprland config
Replace the getSocket1JsonReply("reload") call in onSpecialWorkspaceActivated
with the module's normal local refresh path: the state update to
m_activeSpecialWorkspaceName is picked up by the update() render (triggered by
the dp.emit() already issued at the end of onEvent), which re-evaluates active
state, icons and CSS classes. This avoids reloading the entire Hyprland config
on every special workspace activation while keeping the special-active icon and
CSS improvements.
This commit is contained in:
@@ -396,7 +396,6 @@ void Workspaces::onWorkspaceActivated(std::string const& payload) {
|
||||
void Workspaces::onSpecialWorkspaceActivated(std::string const& payload) {
|
||||
std::string name(begin(payload), begin(payload) + payload.find_first_of(','));
|
||||
m_activeSpecialWorkspaceName = (!name.starts_with("special:") ? name : name.substr(8));
|
||||
m_ipc.getSocket1JsonReply("reload");
|
||||
}
|
||||
|
||||
void Workspaces::onWorkspaceDestroyed(std::string const& payload) {
|
||||
|
||||
Reference in New Issue
Block a user