Commit da0315e4 authored by Neil Roberts's avatar Neil Roberts Committed by Emmanuele Bassi

box: Revert "Tweak the depth sorting function"

This reverts commit 939e56e2.

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.
parent 1c65f2ee
......@@ -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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment