You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a keyboard key is pressed 1 time and then held down, it is expected that only 1 single KEYDOWN event will be queued. However, if we switch between full-screen and windowed modes in response to the KEYDOWN event and keep the key pressed, something unexpected happens. Since pygame.display.set_mode() destroys the window and then creates a new one, this new window seems to sense the key press and then improperly places another KEYDOWN event on the queue. As a result of this, the window goes into full-screen mode, in response to the first KEYDOWN event, but then returns to windowed mode, in response to the second KEYDOWN event, which should not exist.
When a keyboard key is pressed 1 time and then held down, it is expected that only 1 single KEYDOWN event will be queued. However, if we switch between full-screen and windowed modes in response to the KEYDOWN event and keep the key pressed, something unexpected happens. Since pygame.display.set_mode() destroys the window and then creates a new one, this new window seems to sense the key press and then improperly places another KEYDOWN event on the queue. As a result of this, the window goes into full-screen mode, in response to the first KEYDOWN event, but then returns to windowed mode, in response to the second KEYDOWN event, which should not exist.
Environment: Linux(Debian), X11, Python 3.9.2, Pygame 2.5.2, SDL 2.28.2
The text was updated successfully, but these errors were encountered: