-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle windows closing gracefully under X11 (#42)
Request and process WM_DELETE_WINDOW events, so that clicking on the "close" button is equivalent to calling `Graphics.close_graph`. Subsequent graphical operations will raise the `Graphic_failure` exception instead of killing the program on an I/O error. In passing, use `XPending` + `XNextEvent` instead of `XCheckMaskEvent(-1)`, as the latter ignores client events such as WM_DELETE_WINDOW. Co-authored-by: David Allsopp <[email protected]>
- Loading branch information
1 parent
97f6696
commit 77572a4
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters