Index: /trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
===================================================================
--- /trunk/src/VBox/Additions/x11/VBoxClient/display.cpp	(revision 54017)
+++ /trunk/src/VBox/Additions/x11/VBoxClient/display.cpp	(revision 54018)
@@ -273,4 +273,5 @@
     updateScreenInformation(pState, 1024, 768, 0, 1, 0, 0, true, false);
     if (rc == VINF_SUCCESS)
+    {
         /* The "8" is for the sanity test below. */
         for (i = 0; i < RT_MAX(cScreensTracked + 1, 8); ++i)
@@ -287,4 +288,5 @@
                 updateScreenInformation(pState, cx, cy, cBPP, i, x, y, fEnabled, true);
         }
+    }
     while (true)
     {
@@ -319,5 +321,5 @@
                 VBClFatalError(("Received a size hint for too high display number %u\n",
                             (unsigned) iDisplay));
-            updateScreenInformation(pState, cx, cy, cBPP, i, x, y, fEnabled, fUpdatePosition);
+            updateScreenInformation(pState, cx, cy, cBPP, iDisplay, x, y, fEnabled, fUpdatePosition);
             rc = VbglR3SeamlessGetLastEvent(&Mode);
             if (RT_FAILURE(rc))
