Browse Source

display(iOS): do not assign new serial to external display

osy 3 years ago
parent
commit
b955cb9f64
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Platform/iOS/VMSessionState.swift

+ 4 - 0
Platform/iOS/VMSessionState.swift

@@ -216,6 +216,10 @@ extension VMSessionState: UTMSpiceIODelegate {
                         // prefer a GUI display over console for primary if both are available
                         // prefer a GUI display over console for primary if both are available
                         continue
                         continue
                     }
                     }
+                    if windowId == externalWindowBinding?.wrappedValue.id {
+                        // do not set serial with external display
+                        continue
+                    }
                     windowDeviceMap[windowId] = device
                     windowDeviceMap[windowId] = device
                 }
                 }
             }
             }