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

Fixes: keybind clash detection also correctly detects grave against mutter Above_Tab. Fix keybind replace. #530

Merged
merged 2 commits into from
May 23, 2023

Conversation

jtaala
Copy link
Collaborator

@jtaala jtaala commented May 23, 2023

This PR fixes several keybind detection issues (one introduced in Gnome 44 support branch).

Keybind detection has been broken for a while - this became apparent in Gnome 44. Branch fixes-gnome-44-support found and fixed the root cause of PaperWM not correctly identifying clashes with system keybinds (so that it can override them while PaperWM is active.

FIX 1: mutter Above_Tab check against grave

Mutter uses Above_Tab in keybinds, while PaperWM and gnome can also use grave, to describe the same button. This fix normalises these references in PaperWM keybind clashes so that clashes involving PaperWM vs. system keybinds involving grave are detected correctly (and overridden where needed).

FIX 2: Above_Tab internal reference inadvertedly changed to uppercase in fixes-gnome-44-support branch

Not sure how (or why), but I changed the internal reference used by PaperWM to uppercase. This inadvertedly broke PaperWM keybind detection (in the PaperWM settings) involving Above_Tab.

detection.  Fix "a" (needs lowercase since reverse check is against
lowercase "a".
@jtaala jtaala added the merging soon Label for PRs that are planned to be merged soon (usually within the next week) label May 23, 2023
Copy link
Collaborator

@Lythenas Lythenas left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@Lythenas
Copy link
Collaborator

Is it worth backporting this PR also to the gnome43 branch?

@jtaala jtaala merged commit 0592c92 into develop May 23, 2023
@jtaala jtaala deleted the fix-keybind-clash-above_tab-grave-equivalence branch May 23, 2023 22:20
@jtaala jtaala restored the fix-keybind-clash-above_tab-grave-equivalence branch May 23, 2023 22:21
@jtaala
Copy link
Collaborator Author

jtaala commented May 23, 2023

Is it worth backporting this PR also to the gnome43 branch?

Most definitely!

@jtaala jtaala removed the merging soon Label for PRs that are planned to be merged soon (usually within the next week) label May 27, 2023
@jtaala jtaala deleted the fix-keybind-clash-above_tab-grave-equivalence branch June 30, 2023 13:35
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.

2 participants