From 52a6ede3550c5d8cc7817581e3f3eecff7eb52a6 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:34:40 +0100 Subject: [PATCH] do not sort mons, breaks IDs --- src/windowManager.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/windowManager.cpp b/src/windowManager.cpp index 8e57ae0..0036acc 100644 --- a/src/windowManager.cpp +++ b/src/windowManager.cpp @@ -125,15 +125,6 @@ void CWindowManager::setupRandrMonitors() { } xcb_flush(DisplayConnection); - - // sort monitors so that the primary is first and the rest are left to right - std::sort(monitors.begin(), monitors.end(), [](SMonitor& a, SMonitor& b) { return a.primary || a.vecPosition.x < b.vecPosition.x; }); - - Debug::log(LOG, "Sorted monitors. List: "); - for (long unsigned int i = 0; i < monitors.size(); ++i) { - Debug::log(NONE, "Name: " + monitors[i].szName + ", " + std::to_string(monitors[monitors.size() - 1].vecSize.x) + "x" + std::to_string(monitors[monitors.size() - 1].vecSize.y) + - ", at " + std::to_string(monitors[monitors.size() - 1].vecPosition.x) + "," + std::to_string(monitors[monitors.size() - 1].vecPosition.y)); - } } void CWindowManager::setupManager() {