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

Wayland support #95

Open
Caellian opened this issue May 16, 2024 · 0 comments
Open

Wayland support #95

Caellian opened this issue May 16, 2024 · 0 comments

Comments

@Caellian
Copy link

Caellian commented May 16, 2024

This is a feature request for Wayland support.

In total, I feel there's very little that needs to be added/changed to support Wayland on Linux platform.

Needed changes:

  • CMake needs additional option to toggle Wayland support which would then only require XKB from X11 as it's still used by Wayland applications.
  • I think it would be more convenient to move src/linux into src/linux/x11 and duplicate into src/linux/wayland and then make CMake switch between different implementations based on configuration flag.
  • Instead of querying events directly, provide a pointer to wl_pointer_listener so applications can attach it on seat_capability events.
  • Keyboard events are handled very similarly to X11 (using XKB), only the listener registration is handled like mouse events in previous point.

Reference:

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

1 participant