raylib: fix window freezing (#36517)

fix window freezing
This commit is contained in:
Shane Smiskol
2025-11-03 11:17:38 -08:00
committed by GitHub
parent 736e1fa7b7
commit 2cc4885a2e
+2
View File
@@ -357,6 +357,8 @@ class GuiApplication:
# Skip rendering when screen is off
if not self._should_render:
if PC:
rl.poll_input_events()
time.sleep(1 / self._target_fps)
yield False
continue