-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
XMonad.Actions.GridSelect: added gs_cancelOnEmptyClick field #894
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, thanks :)
Hi slotThe, thanks for the review. I fixed some issues you mentioned and force pushed.
Nothing -> whenMaybe (not $ gs_cancelOnEmptyClick gsconfig) contEventloop
|
Oops, I thought we have this in ManageHook. Nevermind then, you don't have to create an extra definition for this.
You don't have to necessarily move the whole thing to breaking changes, just the part that's actually a breaking change. I'd say this is can be a reasonable default |
I set the default value to True and updated the doc accordingly. |
In the original code, when a GridSelect is shown, user has to use keyboard to cancel it (ESC key by default). With this field added, when it is set to True (the default), mouse click on empty space can cancel the GridSelect.
Thanks! |
Description
In the original code, when a GridSelect is shown, user has to use a keyboard to cancel it (ESC key by default). With this field added, when it is set to True, mouse click on empty space can cancel the GridSelect.
When user trigger a GridSelect action using mouse, this change makes it easier to cancel the Grid, without reaching to the keyboard.
Checklist
I've read CONTRIBUTING.md
I've considered how to best test these changes (property, unit,
manually, ...) and concluded:
I have tested the code manually. The default setting preserves the original behavior. User has to opt-in to get the new feature, to reduce surprises.
To test the new behavior,
CHANGES.md
file