Skip to content

Commit

Permalink
Skip mirrored monitors (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjeffer authored May 9, 2024
1 parent c709d46 commit 9befbe8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ void mapWorkspacesToMonitors()
std::vector<std::string> workspaceRules;
writeWorkspaceRules(workspaceRules); // clear the file first
for (auto& monitor : g_pCompositor->m_vMonitors) {
if (monitor->isMirror())
{
Debug::log(INFO, "[split-monitor-workspaces] Skipping mirrored monitor {}", monitor->szName);
continue;
}

int workspaceIndex = monitor->ID * workspaceCount + 1;

std::string logMessage =
Expand Down

0 comments on commit 9befbe8

Please sign in to comment.