diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-05-05 15:01:28 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-05-05 15:01:31 +0100 |
| commit | 8435d6fc124b25aa07b8129d1baf4c6483c54ea7 (patch) | |
| tree | befadb8c018db998089953379fd9b0523f92bbf5 /src/helpers/Monitor.cpp | |
| parent | d1d4683c9162aa4777a4a0da0691ba8c0bd6b7e7 (diff) | |
monitors: toggle special on changeworkspace with special
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 924aab1d..f217f782 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -503,7 +503,10 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) { return; if (pWorkspace->m_bIsSpecialWorkspace) { - Debug::log(ERR, "BUG THIS: Attempted to changeWorkspace to special!"); + if (specialWorkspaceID != pWorkspace->m_iID) { + Debug::log(LOG, "changeworkspace on special, togglespecialworkspace to id %i", pWorkspace->m_iID); + g_pKeybindManager->m_mDispatchers["togglespecialworkspace"](pWorkspace->m_szName == "special" ? "" : pWorkspace->m_szName); + } return; } |
