mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-03 16:46:28 +00:00
workspacerules: fix on-created-empty window focus (#7657)
This commit is contained in:
@@ -51,7 +51,7 @@ void CWorkspace::init(PHLWORKSPACE self) {
|
||||
|
||||
if (self->m_bWasCreatedEmpty)
|
||||
if (auto cmd = WORKSPACERULE.onCreatedEmptyRunCmd)
|
||||
g_pKeybindManager->spawn(*cmd);
|
||||
g_pKeybindManager->spawnWithRules(*cmd, self);
|
||||
|
||||
g_pEventManager->postEvent({"createworkspace", m_szName});
|
||||
g_pEventManager->postEvent({"createworkspacev2", std::format("{},{}", m_iID, m_szName)});
|
||||
|
Reference in New Issue
Block a user