void UpdateWindow() { if (window_ != null) { return; } var window = UwcManager.Find(partialWindowName, false); if (window == null) { return; } window_ = window; window_.onChildAdded.AddListener(OnChildAdded); window_.onChildRemoved.AddListener(OnChildRemoved); }
void UpdateTargetWindow() { if (!shouldUpdateWindow) { return; } switch (type) { case WindowTextureType.Window: window = UwcManager.Find(partialWindowTitle, altTabWindow); break; case WindowTextureType.Desktop: window = UwcManager.FindDesktop(desktopIndex); break; case WindowTextureType.Child: break; } }