mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
do not sort mons, breaks IDs
This commit is contained in:
parent
c463c979bf
commit
52a6ede355
1 changed files with 0 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue