Skip to content
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

Support submaps (binding and entering) when no kpress binding is defined #137

Merged
merged 2 commits into from
Jul 1, 2019

Conversation

raboof
Copy link
Owner

@raboof raboof commented Jun 27, 2019

Fixes #128

@raboof raboof added the development issues that don't impact end users directly label Jun 27, 2019
Copy link
Collaborator

@wilhelmy wilhelmy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this in Xephyr, seems to solve the problem. Thanks!

Copy link
Collaborator

@knixeur knixeur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one minor suggestion, leave it or take it :)

ioncore/key.c Outdated
@@ -249,22 +249,20 @@ static bool do_key(WRegion *reg, XKeyEvent *ev)
grab_needed = TRUE;
else
clear_subs(oreg);
}
}else
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this can be condensed to avoid double clear_subs calls.
Ie:

if(has_submap && add_sub(oreg, ev->keycode, ev->state)) {
    grab_needed = TRUE;
} else {
    clear_subs(oreg);
}

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Are you familiar with the Insert a suggestion <ctrl-g> feature of github? :)

@raboof raboof merged commit 60c7ca2 into master Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development issues that don't impact end users directly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Submaps are not entered if there is not also a kpress handler for that combination
3 participants