As the title states, when I click on my second monitor to change a song, browse for tutorials, etc. Minecraft minimizes on the primary window. Back on 1.16/1.17 this wasn't an issue. There is no native option for Windowed Borderless either.
Environment
Windows 10 Professional, Version 10.0.19044, Build 19044.
Minecraft Verison: 1.18.1-OptiFine_HD_U_H4/vanilla.
Thank you for your report!
We're tracking this issue in MC-158117, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki