Problem with "Dash to Dock". Why don't work minimize window?

Hello everyone
I have a problem with the Dash to Dock extension
I set the click on the application icon as “minimize”.
But when I open a new application, even if I click on the icon, it doesn’t minimize its window.
To make it work, I first need to minimize the window using the common window button, the one at the top.
Then clicking on the Dash to Dock icon also starts working. But first I have to minimize it as is normally done.

What could it be due to? I’ve had this problem for a long time.
Is this an extension bug that I don’t know about?

Thanks to anyone who can help me.

I know it probably doesn’t depend on the Linux distribution in question, but I didn’t know where to ask.

I’m using Fedora 43, stable version.

Welcome to Fedora @donfabino

To find out more about the extension you can use the command:

sudo dnf info gnome-shell-extension-dash-to-dock

It will show you the link to the Website of the Extension >> Dash to dock GNOME Shell extension

Have also a look on this issue, this could give you an explanation why it not always works.

I personally not exactly understand what your exact problem is. Maybe you can explain exactly step by step what you want to achieve and how we can reproduce it. Afterwards you can link to this topic also when you create an issue on the Developers Git Repository.

First of all, thanks for the reply. I thought no one would reply. :smile:
However, I see that it’s a common “dash to dock” bug.
Minimizing from the application icon, on the taskbar, simply doesn’t work. It only starts working after I minimize the application from the common button, on the window.
Thanks anyway.
But really, i would like know how to solve it :sweat_smile:
I’m not very familiar with github.

Anyway, i’ve noted there is a open issue on his page on github. The same issue that i’ve.
Someone have proposed this solution:

 // We customize the action only when the application is already running
    if (this.running) {
        const hasUrgentWindows = !!this._urgentWindows.size;
        const singleOrUrgentWindows = windows.length === 1 || hasUrgentWindows;
        _this._updateState();_
        switch (buttonAction) {
        case clickAction.MINIMIZE:
            // In overview just activate the app, unless the action is explicitly

But i don’t know where i sould use this script.
Anyway seem a common bug on dash to dock.
This is the issue link page in question: Left click to minimize/focus doesn't work with a single window open · Issue #2468 · micheleg/dash-to-dock · GitHub

Thank you very mach for every help

Sorry I do not know where to put the code. Must be known by the developer. You might ask there.

Would you be happy with a keyboard shortcut?

You can close the active window with

Win & h in gnome. Hope this is an alternative until the fix is implemented.

There is also an option in Settings, Keyboard Shortcuts >> Navigation > Hide all normal windows

There is no shortcut for that, so I did put Ctrl & h to hide all windows. If you want to navigate the windwos you can do that with

Alt & Tab to bring the one you like on the top.

I know it is not exactly what you asked for, however sometimes we ned navigate around a problem :wink:

1 Like

Thank you very much for your attention, and your help. Really
In fact sometimes some problem is insurmountable, and we need to “navigate around” it.
This could be the case :smiley:
I already knew the keyboard shortcuts, and i could use them sure, probably i’ll do it.
For me, this question (issue), was more a challenge than a seriuos problem, luckily.

Anyway, i discovered that code should be a part of extension programming, that i should replace with it. I’ve tried, more or less, but without success. :smiley:
It doesn’t matter…

Thank you again, and my regards. :waving_hand:

1 Like