Browse Source

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

osy 3 năm trước cách đây
mục cha
commit
b955cb9f64
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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
                         continue
                     }
+                    if windowId == externalWindowBinding?.wrappedValue.id {
+                        // do not set serial with external display
+                        continue
+                    }
                     windowDeviceMap[windowId] = device
                 }
             }