diff --git a/src/xpra/platform/win32/gui.py b/src/xpra/platform/win32/gui.py index 4d637ed72a..ceb2c5dde2 100644 --- a/src/xpra/platform/win32/gui.py +++ b/src/xpra/platform/win32/gui.py @@ -535,6 +535,12 @@ def handle_console_event(self, event): log.info("received console event %s", str(event_name).replace("_EVENT", "")) else: log.warn("unknown console event: %s", event_name) + if event==win32con.CTRL_C_EVENT: + self.client.signal_disconnect_and_quit(0, "CTRL_C") + return 1 + if event==win32con.CTRL_CLOSE_EVENT: + self.client.signal_disconnect_and_quit(0, "CTRL_CLOSE") + return 1 return 0