mzur / gnome-shell-wsmatrix

GNOME shell extension to arrange workspaces in a two-dimensional grid with workspace thumbnails
GNU General Public License v3.0
462 stars 58 forks source link

Show popup when scrolling on "Show Applications" in Ubuntu #84

Closed JorgeHernansanz closed 3 years ago

JorgeHernansanz commented 4 years ago

Hi there.

After downloading this extension I expected to have a big workspace grid in the middle of the screen. Seeing other post, I have a similar result like this:

Screenshot from 2020-01-05 11-24-33

Is there a way to show that grid bigger?

Also, ubuntu 19.10 has an optional way to go through the workspaces by scrolling upon the 'Show aplication' option. When doing this, I'm just getting a totally horizontal 1D grid. Also, depending the x columns I add to the settings, scrolling doesn't allow me to reach all my workspaces. For example, when having this configuration:

Screenshot from 2020-01-05 11-34-19

And then I try to change between two workspaces:

Screenshot from 2020-01-05 11-39-20

Screenshot from 2020-01-05 11-39-23

Is there anyway to solve this?

Thanks in advance

mzur commented 4 years ago

Is there a way to show that grid bigger?

The usual way to see the workspace grid is through the workspace switcher popup that appears on Ctrl+Alt+Arrow key. You can configure the scale in the options. The grid in the activity overview is not configurable.

Also, ubuntu 19.10 has an optional way to go through the workspaces by scrolling upon the 'Show aplication' option.

I didn't know that, thanks for letting me know. Indeed this should also show the regular workspace switcher popup.

JorgeHernansanz commented 4 years ago

Then, if I have the extension running, why the grid doesn't display a more detailed image of each workspace? Do I have to configure that somehow from the settings of Ubuntu or from the one of the extension?

Edit: I switched the extension off and displays this message: Screenshot from 2020-01-06 09-29-48

mzur commented 4 years ago

Then, if I have the extension running, why the grid doesn't display a more detailed image of each workspace?

It should display thumbnails in the workspace switcher popup that appears with the keyboard shortcut mentioned above.

I switched the extension off and displays this message:

This is a separate issue and may be related to the missing thumbnails. If this issue persists after a restart, please open a new issue.

JorgeHernansanz commented 4 years ago

Okey, thanks for the advice

ebeem commented 4 years ago

this is the code from dash-to-dock file dockedDash.js

        // This comes from desktop-scroller@obsidien.github.com
        function onScrollEvent(actor, event) {

            // Prevent scroll events from triggering too many workspace switches
            // by adding a deadtime between each scroll event.
            // Usefull on laptops when using a touchpad.
            let ADD_DEADTIME = true;
            let DEADTIME = 250;

            if(ADD_DEADTIME){

                // During the deadtime do nothing
                if(this._optionalScrollWorkspaceSwitchDeadTimeId>0)
                    return false;

                this._optionalScrollWorkspaceSwitchDeadTimeId =  Mainloop.timeout_add(DEADTIME, Lang.bind(this, function() {
                        this._optionalScrollWorkspaceSwitchDeadTimeId=0;
                    }
                ));
            }

            // filter events occuring not near the screen border if required
            if(this._settings.get_boolean('scroll-switch-workspace-whole')==false) {

                let [x,y] = event.get_coords();

                if(x > this.staticBox.x1 + 1){
                    return false
                }
            }

            switch ( event.get_scroll_direction() ) {
            case Clutter.ScrollDirection.UP:
                Main.wm.actionMoveWorkspaceUp();
                break;
            case Clutter.ScrollDirection.DOWN:
                Main.wm.actionMoveWorkspaceDown();
                break;
            }

            return true;
        };

to fix this, we will need the extension to call wsmatrix's _moveToWorkspace rather than wm, or we will need to override the workspace manager itself which will most likely cause a lot of errors and integration problems with other extensions.

so in other words, this is an extension integration problem with dash-to-dock

mzur commented 3 years ago

Closing as this would need to be fixed by dash-to-dock.