Skip to content

poll based timeout + handle SIGTERM for a clean exit#83

Open
N-R-K wants to merge 2 commits into
jcs:masterfrom
N-R-K:sigterm
Open

poll based timeout + handle SIGTERM for a clean exit#83
N-R-K wants to merge 2 commits into
jcs:masterfrom
N-R-K:sigterm

Conversation

@N-R-K
Copy link
Copy Markdown
Contributor

@N-R-K N-R-K commented Apr 4, 2025

use poll based event loop for timeout

simpler this way and avoids dependency on Xext

handle SIGTERM for a clean exit

currently there's no way to perform a clean exit. terminating
the process via signal while the mouse is hidden sometimes
leaves the mouse in a hidden state.

N-R-K added 2 commits April 2, 2025 20:13
- simpler this way
- avoids dependency on Xext
- sets us up to handle signals
currently there's no way to perform a clean exit. terminating
the process via signal while the mouse is hidden sometimes
leaves the mouse in a hidden state.

also add a XCloseDisplay call before exiting so that any pending
events can be flushed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant