Ejemplo n.º 1
0
        void OnWindowAdded(UwcWindow window)
        {
            if (window.parentWindow != null)
            {
                return;                          // handled by UwcWindowTextureChildrenManager
            }
            if (!window.isVisible || !window.isAltTabWindow || window.isBackground)
            {
                return;
            }

            window.RequestCapture();
            AddWindowTexture(window);
        }
Ejemplo n.º 2
0
        void OnWindowAdded(UwcWindow window)
        {
            if (!window.isAltTabWindow || window.isBackground)
            {
                return;
            }

            var gameObject = Instantiate(windowListItem, listRoot, false);
            var listItem   = gameObject.GetComponent <UwcWindowListItem>();

            listItem.window = window;
            listItem.list   = this;
            items_.Add(window.id, listItem);

            window.RequestCaptureIcon();
            window.RequestCapture(CapturePriority.Low);
        }