I am trying to make a fullscreen game in Python out of Pygame. My problem is, I can't use the command+tab Mac system key combination (which is tab out) while in full screen. I also can't hide it. This is my code:
display = (1440,900)
pygame.init()
screen = pygame.display.set_mode(display, pygame.DOUBLEBUF | pygame.FULLSCREEN)
I've tried using pygame.display.iconify()
to hide and minimize the window in order to tab out of the program, but it doesn't work in fullscreen because instead it creates a fullscreen black window. I also don't want to toggle fullscreen while doing this.
It may be an instance of a known issue with pygame. A similar problem is described there:
Also when I Cmd+Tab through windows - it's not there. That's why I have to swipe up to see to four-finger-swipe-up […]
Apparently there was a fix:
I committed a fix in #415.
If you Compile from source you can try it out.
pip install https://github.com/pygame/pygame/archive/master.zip
Otherwise, it should be in pygame 1.9.4.
You could try this and see if it applies to your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With