Skip to content

gtk(wayland): customize keyboard interactivity for quick terminal #7477

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

Merged
merged 5 commits into from
May 30, 2025

Conversation

pluiedev
Copy link
Member

Fixes #7476

@pluiedev pluiedev requested a review from a team as a code owner May 30, 2025 12:59
@pluiedev pluiedev force-pushed the push-rxnmykkmlykt branch from 02ab098 to b929906 Compare May 30, 2025 13:10
Copy link
Contributor

@mitchellh mitchellh 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. It's a bit of an odd configuration to expose since I'm not sure I see a use case for setting the other values but I'm fine with it, can always reassess later. More configurability is better than less to keep folks happy, especially if its minimal impact like this.

I made one comment to look at but no need for it to block this merge.

@pluiedev
Copy link
Member Author

AFAICT on demand mode has some strange behavior on wlroots-based compositors like Sway, and so for them exclusive would work a bit better. It's been a while since I've used it, though.

FWIW in my experience both Niri and KWin exhibit what is "correct" in my experience - none prevents the QT from intercepting key events, on-demand makes it only do so when focused, and exclusive makes it steal inputs at all times. However if you read the actual spec you'll see a lot of things are just kind of handwaved away, and that's why I want users to be able to experiment with what feels better on their system.

pluiedev added 5 commits May 30, 2025 19:26
This shouldn't be a real problem anymore since as of now (May 2025)
all major compositors support at least version 4, but let's do this
just in case.
It was getting a bit too unwieldy.
Even though gtk4-layer-shell's documentation claims that "nobody quite
knows what it's for", some compositors (like Niri) can define custom
rules based on the layer name and it's beneficial in those cases to
define a distinct name just for our quick terminals.
@pluiedev pluiedev force-pushed the push-rxnmykkmlykt branch from b929906 to 6959fa8 Compare May 30, 2025 17:26
@mitchellh
Copy link
Contributor

Looks good to me.

@pluiedev pluiedev merged commit bdcbb9f into ghostty-org:main May 30, 2025
37 checks passed
@github-actions github-actions bot added this to the 1.2.0 milestone May 30, 2025
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.

GTK: configurable Wayland keyboard interactivity mode for quick terminal
2 participants