Sort correctly for primary_monitor_first

This commit is contained in:
o9000 2015-12-30 12:23:45 +01:00
parent 737150d7e9
commit 82dc07d7c3

View file

@ -265,9 +265,9 @@ int compare_monitor_pos(const void *monitor1, const void *monitor2)
if (primary_monitor_first) {
if (m1->primary && !m2->primary)
return 1;
if (m2->primary && !m1->primary)
return -1;
if (!m1->primary && m2->primary)
return 1;
}
if (m1->x < m2->x) {