Ubuntu – How to disable the window preview in Ubuntu dock (GNOME sidebar)

18.04gnome-shellubuntu-dock

If you have multiple windows of the same application open and click on the application icon in the dock or the sidebar, then a small preview window is shown.

screenshot of window preview

That is annoying and I would rather like to switch to the application immediately. I think that was possible in previous Ubuntu GNOME versions.

How can I disable this small preview window in the dock?

Best Answer

On your Terminal run:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'skip'

Or you can try(This will allow you to cycle through the open windows by clicking on the icon):

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'cycle-windows'

To revert the action:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'