When tabbing in/out of Minecraft Java 22w11a using Alt + Tab both of my screens turn black, and the computer freezes for a second. Same thing happens when using F11 to toggle fullscreen, pressing the windows key or clicking the game icon in the hotbar.
-> See video attached
Everything works fine when Minecraft is not fullscreen.
What's your fullscreen resolution set to? If it's not set to "Current", does setting it to "Current" solve the issue?