According to the comment in the upstream code this is not what is expected to happen.
Basically the previews mode is only meant to ALWAYS show the previews when multiple windows are available, without focusing one first. While if one window is there, there's no need for the preview. The behavior you want can be easy achivied by patching the code with: diff --git a/appIcons.js b/appIcons.js index d5bcbf2..3cbbd6c 100644 --- a/appIcons.js +++ b/appIcons.js @@ -575,7 +575,7 @@ var DockAbstractAppIcon = GObject.registerClass({ if (!Main.overview.visible) { // If only one windows is present just switch to it, but only when trigggered with the // simple click action (no modifiers, no middle click). - if (singleOrUrgentWindows && !modifiers && button == 1) { + if (hasUrgentWindows && !modifiers && button == 1) { let w = windows[0]; Main.activateWindow(w); } else However I'm not sure it should be the default, while you can open a bug upstream or request for a further mode that always shows the previews. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-shell-extension-ubuntu-dock in Ubuntu. https://bugs.launchpad.net/bugs/1987330 Title: Dock click action "previews" focuses instead Status in gnome-shell-extension-ubuntu-dock package in Ubuntu: New Bug description: Description: Ubuntu 22.04.1 LTS Release: 22.04 gnome-shell-extension-ubuntu-dock: Installed: 72~ubuntu5.22.04.1 Candidate: 72~ubuntu5.22.04.1 Version table: *** 72~ubuntu5.22.04.1 500 500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages 100 /var/lib/dpkg/status 72~ubuntu5 500 500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages With the Ubuntu dock click-action set to previews, focusing on one program then clicking on the icon of a different program with multiple windows focuses the most recently used window from that program instead of showing the previews. Steps to reproduce:- 1) Open multiple Terminal windows (or any program I guess, but I used Terminal and Firefox for testing) 2) Open Firefox 3) Click on the Terminal icon in the dock Expected behaviour: Previews for all the Terminal windows are shown Actual behaviour: The most recent Terminal window is focused. Additional info: Appears to be a regression of #1947445, which was supposedly fixed in version 70 but I'm on version 72. I've tried setting the click-action via gsettings and by editing /usr/share/glib-2.0/schemas/10_ubuntu- dock.gschema.override (as per #1770405) but neither has any effect. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-ubuntu-dock/+bug/1987330/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp