Ubuntu – Ubuntu 17.10, open last used window from group, when clicked in Dock

17.10dockgnomelauncherubuntu-dock

Is there a way to have the same behavior from Unity, where if you had multiple windows from the same application open, when you click on the icon in the Dock (Launcher in Unity), it will open the last used window.

The new GNOME on Ubuntu 17.10 repeatedly gives you a popup to choose which window you want? Is there a way to revert to the Unity behavior?

See screenshot below:

enter image description here

Best Answer

It seems that the behavior of the click action can be changed with:

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

cycle-windows is the closest behavior to unity.

You can list other values with:

gsettings range org.gnome.shell.extensions.dash-to-dock click-action