forked from enlightenment/efl
ecore_x: don't go below 0.
It seems that when things go wrong it does happen that we start with i == 0. It will then have been walking into info[-1] 'happily'. Changing the test, to first decrement and then compare should stop that issue. This should @fix T1467.
This commit is contained in:
parent
97dc9cac36
commit
fc159fbcae
|
@ -2458,7 +2458,7 @@ ecore_x_randr_move_crtcs(Ecore_X_Window root, const Ecore_X_Randr_Crtc *crtcs, i
|
|||
if (i < ncrtc)
|
||||
{
|
||||
/* something went wrong somewhere. move everything back */
|
||||
while (i-- >= 0)
|
||||
while ((--i) >= 0)
|
||||
{
|
||||
if (info[i])
|
||||
ecore_x_randr_crtc_settings_set(root, crtcs[i], NULL, -1,
|
||||
|
|
Loading…
Reference in New Issue