Skip to content

Commit

Permalink
bugfix: actually pass in the sort order to the comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
http://jneen.net/ committed May 3, 2021
1 parent 3c28757 commit 9a1341c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ CFStringRef display_manager_arrangement_display_uuid(int arrangement)
// copy the array to a mutable one, then sort it in place
CFRange all = CFRangeMake((long) 0, (long) count);
CFMutableArrayRef mut_displays = CFArrayCreateMutableCopy(NULL, count, displays);
CFArraySortValues(mut_displays, all, &coordinate_comparator, NULL);
CFArraySortValues(mut_displays, all, &coordinate_comparator, &g_display_manager.sort_order);
result = CFRetain(CFArrayGetValueAtIndex(mut_displays, index));
CFRelease(mut_displays);
}
Expand Down

0 comments on commit 9a1341c

Please sign in to comment.