workspaces: don't try to reopen special workspaces (#6802)

This commit is contained in:
Virt 2024-07-07 21:27:18 +02:00 committed by GitHub
parent 19fb13e6cf
commit 22138ac259
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -652,6 +652,9 @@ void CMonitor::changeWorkspace(const int& id, bool internal, bool noMouseMove, b
} }
void CMonitor::setSpecialWorkspace(const PHLWORKSPACE& pWorkspace) { void CMonitor::setSpecialWorkspace(const PHLWORKSPACE& pWorkspace) {
if (activeSpecialWorkspace == pWorkspace)
return;
g_pHyprRenderer->damageMonitor(this); g_pHyprRenderer->damageMonitor(this);
if (!pWorkspace) { if (!pWorkspace) {