snakeware

Python-based Linux distro for x86-64 and RPi
git clone git://squid-tech.com/snakeware.git
Log | Files | Refs | README

commit 9b857d132dcabc2aedb407d694b8c1d9e13cad1e
parent 39adb1ff6846518d9c5ccac97776566d9e3ecd56
Author: Josh Moore <jxm5210@rit.edu>
Date:   Mon,  1 Jun 2020 20:49:30 -0400

Exit interpreter session on snakewm exit instead of just quitting pygame

Diffstat:
Msnakewm/apps/system/exit snakewm/__init__.py | 3++-
Msnakewm/wm.py | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/snakewm/apps/system/exit snakewm/__init__.py b/snakewm/apps/system/exit snakewm/__init__.py @@ -1,4 +1,5 @@ import pygame def load(manager, params): - return pygame.quit() + pygame.quit() + exit() diff --git a/snakewm/wm.py b/snakewm/wm.py @@ -151,7 +151,8 @@ class SnakeWM: if pressed[pygame.K_LALT]: if event.key == pygame.K_ESCAPE: running = False - return pygame.quit() + pygame.quit() + exit() elif event.type == pygame.USEREVENT: if event.user_type == 'window_selected':