It is incredibly annoying not being able to alt-tab out of old SDL games. I found ‘etswitch’ in the AUR but was unable to compile it due to the file locking permissions not being set as the 3rd parameter for the open() function.
Download the etswitch package from the AUR
Download the source code (should throw a compile error)
Move to the source directory12cd src/etswitch-0.1.14/srcnano etswitch.c
Find:1lock_fd = open(lock_file, O_CREAT | O_RDWR);
Replace with:1lock_fd = open(lock_file, O_CREAT | O_RDWR, 0666);
Save and move back one directory
Move back to the main package folder
Run ‘etswitch’ in a terminal before starting your game, and use Super + Z to minimize/maximize the game.