-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make xclip exit when it loses the selection (#71)
Fix issue #64 (#64). When receiving a SelectionClear event (i.e; lose the selection), the while loop for checking dloop as-is ran endlessly if sloop is set to -1 (a.k.a unlimited number of requests). This caused xclip fail to exit when it loses the selection. Fix the problem via checking whether there is any in-progress transfer. If no, force xclip exit. Add a test case in xctest to make sure xclip can exit properly. (credit: hackerb9)
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 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