Skip to content

Commit

Permalink
fix: run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
WhySoBad committed Nov 21, 2024
1 parent 8974286 commit 1d6c88c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/VirtualDeskManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ class VirtualDeskManager {
bool confLoaded = false;
void cycleWorkspaces();
std::shared_ptr<VirtualDesk> getOrCreateVdesk(int vdeskId);
CSharedPointer<CMonitor> getFocusedMonitor();
CSharedPointer<CMonitor> getFocusedMonitor();
};
#endif
8 changes: 4 additions & 4 deletions src/VirtualDesk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ CSharedPointer<CMonitor> VirtualDesk::deleteInvalidMonitor(const CSharedPointer<
}

void VirtualDesk::deleteInvalidMonitorsOnActiveLayout() {
Layout layout_copy(layouts[m_activeLayout_idx]);
auto enabledMonitors = currentlyEnabledMonitors();
std::unordered_set<CSharedPointer<CMonitor>> enabledMonitors_set;
Layout layout_copy(layouts[m_activeLayout_idx]);
auto enabledMonitors = currentlyEnabledMonitors();
std::unordered_set<CSharedPointer<CMonitor>> 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);
}
Expand Down

0 comments on commit 1d6c88c

Please sign in to comment.