From 140c2d72cb7c8776f8aef13f5d0276a080d46ba0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 14 Aug 2024 10:52:21 +0200 Subject: [PATCH] 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: adc7f9a4ebdfe11d4cd6de9388b63dfe36450b39 Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 6eb767233..31b61e78f 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -205,7 +205,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) break; } if (j < numVisuals) - break; + continue; visuals[numVisuals].vid = FakeClientID(0);