gnome/extensions/workspaces-to-dock@passingthru67.gmail.com/dockedWorkspaces.js
// handler for mouse click events - works in conjuction with hover event to show dock for maxmized windows
handler for mouse click events - works in conjuction with hover event to show dock for maxmized windows
handler for mouse click events - works in conjuction with hover event to show dock for maxmized windows
_onDockClicked(actor, event) {
        if (this._settings.get_boolean('toggle-overview')) {
            let button = event.get_button();
            if (button == 3) { 
                if (Main.overview.visible) {
                    Main.overview.hide(); 
                } else {
                    Main.overview.show(); 
                }
                return Clutter.EVENT_PROPAGATE;
            }
        }
        if (this._settings.get_boolean('require-click-to-show')) {
            if (this._hovering) {
                if (this._settings.get_boolean('autohide') && this._autohideStatus) {
                    if (this._isHovering()) {
                        this._show();
                    } else {
                        this._hide();
                    }
                }
                this._hovering = false;
            }
        }
        return Clutter.EVENT_STOP;
    }
_onDockClicked ( actor , event ) { if ( this . _settings . get_boolean ( 'toggle-overview' ) ) { let button = event . get_button ( ) ; if ( button == 3 ) { if ( Main . overview . visible ) { Main . overview . hide ( ) ; } else { Main . overview . show ( ) ; } return Clutter . EVENT_PROPAGATE ; } } if ( this . _settings . get_boolean ( 'require-click-to-show' ) ) { if ( this . _hovering ) { if ( this . _settings . get_boolean ( 'autohide' ) && this . _autohideStatus ) { if ( this . _isHovering ( ) ) { this . _show ( ) ; } else { this . _hide ( ) ; } } this . _hovering = false ; } } return Clutter . EVENT_STOP ; }
handler for mouse click events - works in conjuction with hover event to show dock for maxmized windows
handler for mouse click events - works in conjuction with hover event to show dock for maxmized windows
// Show overview if button is right click //right click // force normal mode // force overview mode // pass right-click event on allowing it to bubble up //Skip if dock is not in autohide mode for instance because it is shown by intellihide