_listenToDispatchWindow() {
        for (let w = 0; w < this.workspaceManager.n_workspaces; w++) {
            let workspace = this.workspaceManager.get_workspace_by_index(w);
            this.listenWorkspaceEventToDispatch(workspace);
        }

        this.signals.push({
            from: this.workspaceManager,
            id: this.workspaceManager.connect(
                'workspace-added',
                (_, workspace) => {
                    this.listenWorkspaceEventToDispatch(workspace);
                },
            ),
        });

        this.signals.push({
            from: global.display,
            id: global.display.connect(
                'window-entered-monitor',
                (display, monitorIndex, window) => {
                    //Ignore unHandle window and window on primary screens
                    global.superWorkspaceManager.windowEnteredMonitor(
                        window,
                        monitorIndex,
                    );
                },
            ),
        });

        this.signals.push({
            from: global.display,
            id: global.display.connect(
                'window-left-monitor',
                (display, monitorIndex, window) => {
                    /*
            //Ignore unHandle window and window on primary screens
            global.superWorkspaceManager.windowLeftMonitor(
                window,
                monitorIndex
            ); */
                },
            ),
        });
    }
/*
   ** Connect to windows events and redispatch windows in workspacesEnhancer
   */
Connect to windows events and redispatch windows in workspacesEnhancer
Connect to windows events and redispatch windows in workspacesEnhancer
_listenToDispatchWindow() {
        for (let w = 0; w < this.workspaceManager.n_workspaces; w++) {
            let workspace = this.workspaceManager.get_workspace_by_index(w);
            this.listenWorkspaceEventToDispatch(workspace);
        }
        this.signals.push({
            from: this.workspaceManager,
            id: this.workspaceManager.connect(
                'workspace-added',
                (_, workspace) => {
                    this.listenWorkspaceEventToDispatch(workspace);
                },
            ),
        });
        this.signals.push({
            from: global.display,
            id: global.display.connect(
                'window-entered-monitor',
                (display, monitorIndex, window) => {
                    global.superWorkspaceManager.windowEnteredMonitor(
                        window,
                        monitorIndex,
                    );
                },
            ),
        });
        this.signals.push({
            from: global.display,
            id: global.display.connect(
                'window-left-monitor',
                (display, monitorIndex, window) => {
                    /*
            global.superWorkspaceManager.windowLeftMonitor(
                window,
                monitorIndex
            ); */
                },
            ),
        });
    }
_listenToDispatchWindow ( ) { for ( let w = 0 ; w < this . workspaceManager . n_workspaces ; w ++ ) { let workspace = this . workspaceManager . get_workspace_by_index ( w ) ; this . listenWorkspaceEventToDispatch ( workspace ) ; } this . signals . push ( { from : this . workspaceManager , id : this . workspaceManager . connect ( 'workspace-added' , ( _ , workspace ) => { this . listenWorkspaceEventToDispatch ( workspace ) ; } , ) , } ) ; this . signals . push ( { from : global . display , id : global . display . connect ( 'window-entered-monitor' , ( display , monitorIndex , window ) => { global . superWorkspaceManager . windowEnteredMonitor ( window , monitorIndex , ) ; } , ) , } ) ; this . signals . push ( { from : global . display , id : global . display . connect ( 'window-left-monitor' , ( display , monitorIndex , window ) => { } , ) , } ) ; }
Connect to windows events and redispatch windows in workspacesEnhancer
Connect to windows events and redispatch windows in workspacesEnhancer
//Ignore unHandle window and window on primary screens /*
            //Ignore unHandle window and window on primary screens
            global.superWorkspaceManager.windowLeftMonitor(
                window,
                monitorIndex
            ); */