fix workspace event and add activewindow and activemon
This commit is contained in:
parent
ad7e66adaa
commit
0ad33742e1
3 changed files with 8 additions and 5 deletions
|
|
@ -208,6 +208,10 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
|
||||
// start anim on new workspace
|
||||
PWORKSPACETOCHANGETO->startAnim(true, ANIMTOLEFT);
|
||||
|
||||
// Event ONLY if workspace is actually "changed" and we arent just focusing
|
||||
if (!m_bSuppressWorkspaceChangeEvents)
|
||||
g_pEventManager->postEvent(SHyprIPCEvent("workspace", PWORKSPACETOCHANGETO->m_szName));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -232,10 +236,6 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
// mark the monitor dirty
|
||||
g_pHyprRenderer->damageMonitor(PMONITOR);
|
||||
|
||||
// Event
|
||||
if (!m_bSuppressWorkspaceChangeEvents)
|
||||
g_pEventManager->postEvent(SHyprIPCEvent("workspace", PWORKSPACETOCHANGETO->m_szName));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue