Hacker News new | past | comments | ask | show | jobs | submit login
Wayland McWayface (a tutorial compositor) on the JVM using jextract (github.com/markehammons)
17 points by pplonski86 on March 3, 2019 | hide | past | favorite | 5 comments



Nice :) sorry the tutorials don't go much further. You should check out tinywl too.


Someone reposted this from my reddit posts so I just saw your comment. Like I mentioned on reddit, my next step is to make the code more scalaish (I kept it very c-like to allow it to be more easily compared to the original tutorials).

I've starred your tinywl gist and I'll work on adding features from that into the project to get stuff like the mouse cursor working, etc.

Thanks


tinywl is now tracked in the wlroots tree and receiving conservative updates to follow wlroots API changes:

https://github.com/swaywm/wlroots/tree/master/tinywl

Good luck!


Thanks. I've recorded it. Looking at TinyWL's source has also answered a question I had in implementing part 3 (where does xdg-shell-unstable-v6-protocol.h come from?), so now I have my project automatically generating that with wayland-scanner.

One question while I have your attention. I've made this implementation based on wayland 0.3 so it's got some different API calls in some cases than your original tutorial (for example: "wlr_render_with_matrix" -> "wlr_render_texture_with_matrix"). I haven't been able to get gnome-terminal working with my version, but I have been able to get weston-terminal working. Is this because the xdg-shell-unstable-v6-protocol has changed? Or have I done something wrong?


xdg-shell v6 is thankfully almost obsolete. Try setting up xdg-shell stable instead - the wlroots interface is almost the same




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: