04:52wlb: wayland-protocols Merge request !196 opened by i509VCB (i509VCB) Draft: Add foreign-toplevel-state protocol https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/196
10:15emersion: ouch, i missed the wayland release yesterday
10:15emersion: going to do this today
10:17wlb: wayland Issue #369 opened by Pascal Bryner (Veldora) libwayland-server.so.0.21.0 ends in segfault and then somehow shuts down my system. https://gitlab.freedesktop.org/wayland/wayland/-/issues/369
10:21wlb: wayland Issue #369 closed \o/ (libwayland-server.so.0.21.0 ends in segfault and then somehow shuts down my system. https://gitlab.freedesktop.org/wayland/wayland/-/issues/369)
10:56pq: emersion, heh, and no-one apparently complained :-)
10:56psykose: i think it should be delayed longer to be more enterprise
11:32zzag: Will we be able to get wayland/wayland!188 still in though?
11:32emersion: i haven't had time to review yet sadly
12:28brunothedev: hey guys, is weston and libweston small enough to research on how to make a compositor?
12:38pq: brunothedev, I would tend to say "no". But the same probably applies to any compositor that is not a toy.
12:41brunothedev: 130k cloc...
12:42daniels: making a compositor is complex: you should use an existing framework, like libweston or wlroots or mutter or ...
12:43brunothedev: wlroots doesnt work good with nvidia, this is why i want to write my own
12:43daniels: it will be infinitely easier to fix wlroots than to write your own
12:44brunothedev: nah i want to write my own using only libwayland-server
12:45daniels: yep, and the 130k loc is a good starting point
12:45daniels: you can write one which doesn't do anything if you like, but if you want it to work and be useful, then that's about the minimum
12:46pq: I guess that's something between a 10k and 200k LoC project, depending on how full-featured it is.
12:54brunothedev: pq: ok, so is there a toy wayland compositor... That dont uses libweston or wlroots?
12:57pq: I haven't looked into any that I would know to recommend.
13:15kennylevinsen: brunothedev: I'd recommend forking a compositor library and adding the support you need. There used to be an (unsupported) eglstream fork of wlroots for example
13:15brunothedev: kennylevinsen: the problem isnt egl
13:15brunothedev: it is probaply something else
13:15brunothedev: nvidia 525 btw
13:16kennylevinsen: Nowadays you should be able to work with GBM and normal wlroots
13:16kennylevinsen: start out by figuring out what doesn't work well with your driver first though
13:18kennylevinsen: Otherwise you risk your new compositor having all the same issues - it *is* driver problems after all, so unless you know the secret spell to make the driver happy, the issues will just follow you around. :)
13:18brunothedev: kennylevinsen: there is two issues: 1. when the screen starts moving, the colors freak out. 2. when i open a window, the cursor disappears
13:23kennylevinsen: I don't have a GPU with proprietary drivers, so you would have to diagnose it yourself. If you want to write a compositor you'll have to do as much anyway.
13:23brunothedev: i dont think it is the drivers, mutter works fine
13:25kennylevinsen: if correct usage of the UAPI leads to unexpected behavior when using certain drivers, then it is a driver issue
17:44bl4ckb0ne: anybody ever worked on a wayland loader?
17:44bl4ckb0ne: like check of WAYLAND_DISPLAY is set and load the .so and the relevant function pointers
17:45DemiMarie: bl4ckb0ne: why would that be needed?
17:45bl4ckb0ne: working on a window toolkit and im aiming for portability
17:46bl4ckb0ne: just a random thought that came to me, i guess i could also just static link wayland-client
17:54jadahl: bl4ckb0ne: both sdl and I think at least recently glfw does that
17:54ifreund: firefox too iirc
18:03bl4ckb0ne: good to know!
18:03bl4ckb0ne: its a shame that distros dont ship more static libs
18:17kchibisov: bl4ckb0ne: wayland-rs does that since its start, so like for 5 years at least. It was dynamic from the start, because it was ran along side X11 stuff which is also dl-opened.
18:17kchibisov: So dlopening system lib is very common in cross platform toolkits, because most of the time it's the only way to go.