Windows - How to prevent minimizing the current opened app when clicking on its icon in the taskbar?

Is there a way to set windows so that if I click the icon of the current opened app it will not be minimized?

You might ask why do I want this. Sometimes I get distracted, think that I want to use the current app when it's actually maximized, click on the icon in the taskbar but then I see that I get the last maximized app so I click it again to get it back. When distracted, this behavior is confusing.

So, other than fixing me, is there a software solution?

Thanks.


Solution 1:

Following saaransh garg's answer (thanks!), this is the solution.

Download and install 7+ Taskbar Tweaker from https://rammichael.com/7-taskbar-tweaker

Run it.

Right click the tray icon (the one near the clock, not the one in the taskbar) and choose Advanced options.

Add the value according to the instructions here

https://tweaker.userecho.com/en/communities/1/topics/469-add-option-to-disable-minimize-window-when-clicking-already-active-window