Dock click action "previews" focuses instead
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell-extension-ubuntu-dock (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Description: Ubuntu 22.04.1 LTS
Release: 22.04
gnome-shell-
Installed: 72~ubuntu5.22.04.1
Candidate: 72~ubuntu5.22.04.1
Version table:
*** 72~ubuntu5.22.04.1 500
500 http://
500 http://
100 /var/lib/
72~ubuntu5 500
500 http://
500 http://
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/
tags: | added: jammy |
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu): | |
importance: | Undecided → Low |
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 registerClass( { 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). Windows && !modifiers && button == 1) {
let w = windows[0];
Main. activateWindow( w);
} else
index d5bcbf2..3cbbd6c 100644
--- a/appIcons.js
+++ b/appIcons.js
@@ -575,7 +575,7 @@ var DockAbstractAppIcon = GObject.
if (!Main.
- if (singleOrUrgent
+ if (hasUrgentWindows && !modifiers && button == 1) {
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.