Skip to content

Commit

Permalink
#819: hook our own ctrl-c handler, which also works with gtk3!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8736 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 2, 2015
1 parent a42d37b commit bfa6fae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/xpra/platform/win32/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit bfa6fae

Please sign in to comment.