-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure X11 connections are closed (#3924)
Introduces a DisplayOwner struct to own both the library and associated display pointer; their lifetimes are combined in that struct. The display pointer is encapsulated in a DisplayRef. When DisplayOwner is dropped, it ensures that the DisplayRef is correctly closed prior to unloading the library. refs: #3813
- Loading branch information
Showing
2 changed files
with
123 additions
and
62 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