Xnest: fix upstream visuals retrieval and visual reporting
As upstream might report a huge number of visuals with same parameters,
we have a deduplication mechanism.
This code has a bug: instead of just skipping duplicates, it completely
breaks off once the first duplicate is found - leading to only one depth
supported.
Fixes: adc7f9a4eb
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
386b54fbe9
commit
140c2d72cb
|
@ -205,7 +205,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (j < numVisuals)
|
if (j < numVisuals)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
visuals[numVisuals].vid = FakeClientID(0);
|
visuals[numVisuals].vid = FakeClientID(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue