diff --git a/include/VirtualDeskManager.hpp b/include/VirtualDeskManager.hpp index 0bd78fc..8135b37 100644 --- a/include/VirtualDeskManager.hpp +++ b/include/VirtualDeskManager.hpp @@ -36,6 +36,6 @@ class VirtualDeskManager { bool confLoaded = false; void cycleWorkspaces(); std::shared_ptr getOrCreateVdesk(int vdeskId); - CSharedPointer getFocusedMonitor(); + CSharedPointer getFocusedMonitor(); }; #endif diff --git a/src/VirtualDesk.cpp b/src/VirtualDesk.cpp index 4e13ca0..d5f1458 100644 --- a/src/VirtualDesk.cpp +++ b/src/VirtualDesk.cpp @@ -102,15 +102,15 @@ CSharedPointer VirtualDesk::deleteInvalidMonitor(const CSharedPointer< } void VirtualDesk::deleteInvalidMonitorsOnActiveLayout() { - Layout layout_copy(layouts[m_activeLayout_idx]); - auto enabledMonitors = currentlyEnabledMonitors(); - std::unordered_set> enabledMonitors_set; + Layout layout_copy(layouts[m_activeLayout_idx]); + auto enabledMonitors = currentlyEnabledMonitors(); + std::unordered_set> enabledMonitors_set; for (const auto& mon : enabledMonitors) { enabledMonitors_set.insert(mon); } for (const auto& [mon, workspaceId] : layout_copy) { if (enabledMonitors_set.count(mon) <= 0) { - auto newMonitor = firstAvailableMonitor(enabledMonitors); + auto newMonitor = firstAvailableMonitor(enabledMonitors); layouts[m_activeLayout_idx][newMonitor] = workspaceId; layouts[m_activeLayout_idx].erase(newMonitor); }