Arch Linux - etswitch
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 https://aur.archlinux.org/packages/etswitch/
Download the source code (should throw a compile error)
- Move to the source directory
cd src/etswitch-0.1.14/src nano etswitch.c
lock_fd = open(lock_file, O_CREAT | O_RDWR);
lock_fd = open(lock_file, O_CREAT | O_RDWR, 0666);
Save and move back one directory
Move back to the main package folder
makepkg makepkg -i
Run ‘etswitch’ in a terminal before starting your game, and use Super + Z to minimize/maximize the game.