-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add no-repeat cli option #1623
Add no-repeat cli option #1623
Conversation
Thank you. 👍
I moved the (I renamed to
I added documentation in that last commit. The branch is
if the
|
Seems to work fine. I see you inverted the naming scheme of the option. 434ffbd#diff-1e7437254ef4ba8f538e75a3bd53846fR414
vs 94269cc#diff-1e7437254ef4ba8f538e75a3bd53846fR465
I think ignore_key_repeat is easier to understand at first glance rather then !im->forward_key_repeat, but other then that it all looks good. |
With display no longer being a variable then that should no longer be needed as well right? |
Thank you for the feedbacks.
The idea is to use boolean flags with a "positive" meaning. For example Here, the condition in the block is negative because it's an early return (an early return is often used in the negative form): if (im->forward_key_repeat) {
// forward event
} vs if (!im->forward_key_repeat) {
return;
}
// forward_event
It's removed: 65d06a3#diff-4dd0bcc81fa9404d5dd8572e7682d3c5L248 |
Merged 84f1d9e |
Still need documentation, not sure what you would want to put in there.
This modifies event_loop to pass down the option struct instead of passing the individual options as it seemed silly to expand the function to add a third param.
Not sure of the point of
xeropresence@434ffbd#diff-4dd0bcc81fa9404d5dd8572e7682d3c5R245