After some time I getting in trouble with doing same (minimizing or closing panes) patterns over and over. I try to discover new thing and I can relax now. Why? Now, we can close all opened windows in one applications in just one click while we are holding Option key.
And they will sit tamely in the Dock, just like this..
But, do not overdo it.. Or something like this will happen on you..
However, you do not have to worry, Option and click that application will hide those tiny icons. Clicking another application will follow a bit different result, it will hide all other apps windows and show his own windows.
If you want to close them all, just Option and click to one of windows close button, to close all in once (so far, I this only success for photoshop, maybe you know other apps?). If this trick isn't working in your apps, just close your apps and all of its windows will be closed too. You will see cool animation, the tiny icons disappear one by one.
Some articles taken from our resource base, tightly related to current article, to empower you with more knowledge on tweaking the most out of your Mac.