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:
Enrico Weigelt, metux IT consult 2024-08-14 10:52:21 +02:00
parent 386b54fbe9
commit 140c2d72cb

View File

@ -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);