mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
box: Tweak the depth sorting function
By changing the depth sorting function we can achieve the same effect as ClutterGroup but without the costly append+sort. http://bugzilla.openedhand.com/show_bug.cgi?id=1988
This commit is contained in:
parent
95960ab902
commit
939e56e2b1
@ -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…
Reference in New Issue
Block a user