diff options
author | RaindropsSys <contact@minteck.org> | 2023-09-09 19:20:34 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-09-09 19:20:34 +0200 |
commit | 8f2e1b445f52e3df6e9763d216de1c0052c00153 (patch) | |
tree | 3d4a7bc1e0b4894a62e14ee727bef193b61c3849 /main.py | |
parent | 553401cc031d2d073f33008129ada4faf1eb2582 (diff) | |
download | blocks-mane.tar.gz blocks-mane.tar.bz2 blocks-mane.zip |
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ while running: try: screen.fill("black") - pygame.event.set_allowed([pygame.APPMOUSEFOCUS, pygame.APPINPUTFOCUS, pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWICCPROFCHANGED, pygame.WINDOWTAKEFOCUS, pygame.WINDOWMINIMIZED, pygame.QUIT]) + pygame.event.set_allowed([pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWMINIMIZED, pygame.QUIT]) for event in pygame.event.get(): if event.type == pygame.WINDOWFOCUSLOST: focused = False @@ -102,7 +102,7 @@ while running: print(traceback.format_exc()) while running: - pygame.event.set_allowed([pygame.APPMOUSEFOCUS, pygame.APPINPUTFOCUS, pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWICCPROFCHANGED, pygame.WINDOWTAKEFOCUS, pygame.WINDOWMINIMIZED, pygame.QUIT]) + pygame.event.set_allowed([pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWMINIMIZED, pygame.QUIT]) for event in pygame.event.get(): if event.type == pygame.QUIT: running = False |