Skip to content

Add universal seat grab protocol. #4

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add universal seat grab protocol. #4

wants to merge 1 commit into from

Conversation

outfoxxed
Copy link
Member

This protocol allows grabs to be created for surfaces that aren't xdg popups.

This allows

  1. Popups with a closing animation, as xdg-popup requires that the window is destroyed with no animation.
  2. Launchers and similar programs to grab focus instead of placing invisible layers over every monitor to detect a click.

I've included requests to deal with keyboard focus as it is handled in xdg popup's grab but the client could also be asked to interpret keyboard seat focus however it wants, though this makes it harder to use with toolkits.

@outfoxxed outfoxxed mentioned this pull request May 23, 2025
</description>
</event>

<request name="set_keyboard_surface">

Choose a reason for hiding this comment

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

wouldn't it make sense to also give an (optional) pointer surface request?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure how much use a single pointer surface has. We could limit it to a set of surfaces but the client can also do that. I've matched the behavior to that of xdg_popup for now.

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