forked from enlightenment/enlightenment
fix xinerama monitor sorting.
xinerama monitor sorting should consider position and not just size. Patch by manio, modified to handle y axis as well. SVN revision: 40712
This commit is contained in:
parent
97de98a66e
commit
f583aca207
|
@ -211,7 +211,14 @@ _e_xinerama_cb_screen_sort(const void *data1, const void *data2)
|
|||
|
||||
scr = data1;
|
||||
scr2 = data2;
|
||||
dif = (scr2->w * scr2->h) - (scr->w * scr->h);
|
||||
if (dif == 0) return scr->screen - scr2->screen;
|
||||
if (scr2->x != scr->x)
|
||||
return scr2->x - scr->x;
|
||||
else if (scr2->y != scr->y)
|
||||
return scr2->y - scr->y;
|
||||
else
|
||||
{
|
||||
dif = (scr2->w * scr2->h) - (scr->w * scr->h);
|
||||
if (dif == 0) return scr->screen - scr2->screen;
|
||||
}
|
||||
return dif;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue