[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] pygame.event.set_grab(True) ineffective under GNOME shell



Hello,

GNOME shell shrinks all windows to display an overview when the user presses the SUPER (a.k.a. windows) key [1]. Needless to say, this is very disruptive for a full-screen game, especially a keyboard mashing game for children like bambam [2].

I tried disabling this behaviour by calling pygame.event.set_grab(True), but without success: get_grab() returns (1), but there is no change in SUPER key behaviour.
FWIW, I'm currently using pygame 1.9.4 [3].

Any suggestions most welcome.

regards,
Marcin

[1] https://help.gnome.org/users/gnome-help/stable/keyboard-key-super.html.en
[2] https://github.com/porridge/bambam
[3] https://packages.debian.org/buster/python3-pygame