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);
        }
示例#2
0
        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;
            }
        }