19:03wlb: wayland Merge request !465 opened by Sebastian Wick (swick) shm: Add wl_shm_buffer ref and unref functions https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/465
21:31orowith2os[m]: Does anybody have some decent resources for writing a wayland compositor without wlroots or any other helpers?
21:31orowith2os[m]: well, I guess I could use wlroots, but... I'm not sure how useful it would be...
21:32orowith2os[m]: It's really just going to pass everything through to Xorg, and the X11 events back to the Wayland clients
21:43kennylevinsen: you're not building a compositor, so...
21:43kennylevinsen: at least not as long as you're "just passing everything through to Xorg"
21:43orowith2os[m]: kennylevinsen: more of a display server, not a compositor, I guess. I still need to do the server things
21:44orowith2os[m]: taking client events and sending them to Xorg, sending them back to clients
21:45orowith2os[m]: trying to find some C++ bindings for libwayland-server so I can maybe see if it provides anything helpful...
21:45kennylevinsen: there's two approaches: make a traditional compositor that has a different backend/renderer, or make a bare wayland-server that tries to just apply stuff from the Wayland side directly to X without tracking much state of its own
21:46orowith2os[m]: the latter is what I'm going for
21:46orowith2os[m]: if I wanted the former, I would be using wlroots
21:46orowith2os[m]: I also want to do things from scratch for funsies, and so I can learn a bit more on how it all works, really
21:49orowith2os[m]: all I'm doing is translating events to a different protocol and passing memory around, I shouldn't need to do a lot
21:52kennylevinsen: you're translating between different models, so you'll need to track and maintain state - but the approach you want to take is more akin to waypipe than any compositor example
21:53kennylevinsen: but use wlroots/weston/jay/whatever as reference for specific functionality - that there's helpers doesn't matter from a perspective of learning from it
22:28NepNep: list