mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
box: Revert "Tweak the depth sorting function"
This reverts commit 939e56e2b12e5c96fa1173be33c2786ddfe57c25. Changing the depth sort function to have inconsistent behaviour for nodes that compare equal breaks the stability of g_list_sort. It ends up so that every time clutter_container_sort_depth_order is called the order of all actors with the same depth is reversed. http://bugzilla.openedhand.com/show_bug.cgi?id=1988
This commit is contained in:
parent
1c65f2ee1e
commit
da0315e4d6
@ -119,7 +119,7 @@ sort_by_depth (gconstpointer a,
|
||||
if (depth_a < depth_b)
|
||||
return -1;
|
||||
|
||||
if (depth_a >= depth_b)
|
||||
if (depth_a > depth_b)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user