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

Add Wayland watcher #10

Open
SUPERCILEX opened this issue Jul 19, 2024 · 4 comments
Open

Add Wayland watcher #10

SUPERCILEX opened this issue Jul 19, 2024 · 4 comments

Comments

@SUPERCILEX
Copy link
Owner

No description provided.

@Artem-B
Copy link

Artem-B commented Aug 16, 2024

Can x11 watcher be used until proper wayland watcher exists? Wayland seems to emulate primary/clipboard reasonably well for the legacy X11 apps.

@SUPERCILEX
Copy link
Owner Author

Yup, x11 should work just fine. The main reason to add a native Wayland implementation is performance.

@SUPERCILEX
Copy link
Owner Author

Work remaining:

  • Support claiming selection ownership
  • Automatically trigger a paste

Spec: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/ext-data-control/ext-data-control-v1.xml?ref_type=heads

Seems like I should be able to create a virtual keyboard from https://wayland.app/protocols/virtual-keyboard-unstable-v1 and get the keymap from https://smithay.github.io/wayland-rs/wayland_client/protocol/wl_keyboard/enum.Event.html.
Though actually I probably need to research https://wayland.app/protocols/text-input-unstable-v3 because that seems like the correct way to insert text. Hmmm, but I don't think I could insert stuff like images as that requires the application to run its code?

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

No branches or pull requests

2 participants