gnome/extensions/workspaces-to-dock@passingthru67.gmail.com/myWorkspaceThumbnail.js
// Create a clone of a (non-desktop) window and add it to the window list
Create a clone of a (non-desktop) window and add it to the window list
Create a clone of a ( non - desktop ) window and add it to the window list
_addWindowClone(win, refresh) {
        let clone = new MyWindowClone(win);
        clone.connect('selected', (clone, time) => {
            this.activate(time);
        });
        clone.connect('drag-begin', () => {
            Main.overview.beginWindowDrag(clone.metaWindow);
        });
        clone.connect('drag-cancelled', () => {
            Main.overview.cancelledWindowDrag(clone.metaWindow);
        });
        clone.connect('drag-end', () => {
            Main.overview.endWindowDrag(clone.metaWindow);
        });
        clone.connect('destroy', () => {
            this._removeWindowClone(clone.metaWindow);
        });
        this._contents.add_actor(clone);
        if (this._windows.length == 0)
            clone.setStackAbove(this._bgManager.backgroundActor);
        else
            clone.setStackAbove(this._windows[this._windows.length - 1]);
        this._windows.push(clone);
        return clone;
    }
_addWindowClone ( win , refresh ) { let clone = new MyWindowClone ( win ) ; clone . connect ( 'selected' , ( clone , time ) => { this . activate ( time ) ; } ) ; clone . connect ( 'drag-begin' , ( ) => { Main . overview . beginWindowDrag ( clone . metaWindow ) ; } ) ; clone . connect ( 'drag-cancelled' , ( ) => { Main . overview . cancelledWindowDrag ( clone . metaWindow ) ; } ) ; clone . connect ( 'drag-end' , ( ) => { Main . overview . endWindowDrag ( clone . metaWindow ) ; } ) ; clone . connect ( 'destroy' , ( ) => { this . _removeWindowClone ( clone . metaWindow ) ; } ) ; this . _contents . add_actor ( clone ) ; if ( this . _windows . length == 0 ) clone . setStackAbove ( this . _bgManager . backgroundActor ) ; else clone . setStackAbove ( this . _windows [ this . _windows . length - 1 ] ) ; this . _windows . push ( clone ) ; return clone ; }
Create a clone of a (non-desktop) window and add it to the window list
Create a clone of a ( non - desktop ) window and add it to the window list