I'm on Linux right now, and there's a slight issue.
I usually have Discord Canary, MultiMC, and the game open when I play MC. I play in fullscreen (idk why lol) and when I tab out of it, as expected, I tab into Discord. However when I alt+tab **again, I go to MultiMC. It should send me back to MC, but it doesn't.
How to reproduce
Be on Linux (I don't know if this bug happens on other OSes)
Install whatever MC Java launcher you want (this should happen on the vanilla launcher too)
Open the game with at least 2 extra windows open. (You can keep the launcher open.)
If the game is running in windowed mode, press F11 to use fullscreen.
Press alt+tab.
Press alt+tab again.
What is Expected: The first alt+tab sends you to the last window you had open other than MC and the second sends you back to MC.
What Actually Happens: The first alt+tab is fine, but the second one sends you back to the second most recently opened window that wasn't MC.
TL;DR Tabbing out of fullscreen MC (this bug doesn't happen in windowed) doesn't set it as the last window you had open
This report seems slightly similar to MC-184162. With that being said, would this happen to describe your issue?