ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor || https://github.com/ifreund/river || channel logs: https://libera.irclog.whitequark.org/river/
waleee has quit [Ping timeout: 245 seconds]
novakane has joined #river
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #river
yyp has joined #river
waleee has joined #river
snakedye has joined #river
snakedye has quit [Remote host closed the connection]
snakedye has joined #river
<snakedye> @leon-p sick! how did you do it?
novakane has quit [Quit: WeeChat 3.1]
novakane has joined #river
snakedye has quit [Ping timeout: 245 seconds]
snakedye has joined #river
<ifreund> leon-p: the proper way to bind the wlroots API without doing manual libinput bindings would be to make the function return an opaque pointer and then use @ptrCast() to pass it to libinput
<ifreund> i.e. `const LibinputDevice = opaque{};` in the zig-wlroots file
<ifreund> novakane: I just got back from some backpacking last night, I'll be updating everything to zig 0.8.0 first and then I'll have a look at the damage tracking thing
<ifreund> inclement: I think you're 100% right about the subsurfaces, thanks for the tip!
<novakane> ifreund: no worries :)
<novakane> btw I pushed an update for zig on void since I saw you looked like busy irl, not sure if this is a thing only the maintener can do
<ifreund> novakane: looks great, thansk
<novakane> no problem
<novakane> also yeah I think inclement is right too, but not sure how to do it
snakedye has quit [Ping timeout: 245 seconds]
<inclement> I think it just needs an iteration over subsurfaces when mapping a new surface (in addition to binding to the new_subsurface event) - I made a POC patch to play with zig but I couldn't reproduce the original issue so I didn't test it, it could easily have been wrong
<inclement> I think you can see the same think in sway's surface handling
<novakane> allright I'll try
<inclement> novakane: What I was trying is https://gist.github.com/inclement/3fab077b5df19152cf02ca538cf12795 - but 1) this is probably not the best solution, 2) it might just be wrong, 3) I only put it in xdg-popup, you might need the same in other map events. If you're trying though, maybe it can help
<novakane> inclement: ok thanks it's a starting point I'll see what I can do
<novakane> debugging is so annoying since it works great in river in river so I always need to quit river and relaunch to test
<ifreund> novakane: if you don't get it no worries, it should only take me a minute or two
<novakane> ifreund: damn that hurt :P
<ifreund> novakane: it should be 3 while loops calling Subsurface.create()
<ifreund> actually no, only 2
<ifreund> one in xdg-toplevel map and one in xdg-popup map
yyp has quit [Ping timeout: 245 seconds]
yyp has joined #river
<leon-p> ifreund: where were you backpacking, if you don't mind me asking?
<ifreund> leon-p: badlands national park! I decided to spend a bit of time in the US, see my family for the first time in over a year, get my covid vaccine, and spend a lot of time outdoors :)
yyp has quit [Read error: Connection reset by peer]
yyp has joined #river
yyp has quit [Remote host closed the connection]
<leon-p> that sounds great!
yyp has joined #river
yyp has quit [Remote host closed the connection]
yyp has joined #river
<leon-p> I really need to get out more as well. Used to have great stamina but in the recent year I got a bit to comfortable :D
<ifreund> I did a lot of distance running back in highschool, both cross country and track & field so I've got a pretty good base there
<ifreund> been running a bit more often on my own since the whole pandemic started too since I get restless if I sit around for more than a few days in a row
<ifreund> hmm, I wonder if we should have a #river-offtopic
<ifreund> don't really this kind of thing cluttering up the logs as nice as it is xD
<novakane> in the same time it's not like it's a really busy channel so not sure if off topic is really annoying
snakedye has joined #river
dedguy21 has joined #river
<dedguy21> Getting the following build error:
<ifreund> dedguy21: before you even paste the build error, what zig version?
<ifreund> zig 0.8.0 has just been released and river requires it
<dedguy21> Ah, thanks.
<novakane> ifreund: oh i just realized when I made the wlr_text_input_v3.h bind I didn't had a const in wlroots.zig
<ifreund> novakane: ah whoops, I shoulda caught that
<novakane> do you mind if I'll add it in my other PR?
<dedguy21> Yup updated zig 0.8, builds like a charm
<ifreund> novakane: probably easiest to just open a new PR. If you'd rather put it in the same one please put it in a separate commit
<ifreund> dedguy21: nice :)
dedguy21 has quit [Quit: Client closed]
<ifreund> neat, zls completions for packages started working when I updated river to zig 0.8.0
<ifreund> I guess my zls was trying to use zig master to compile its build runner or something like that
<novakane> ifreund: no problem I'll open an other PR, is it sorted in wlroots.zig?
<ifreund> wlroots.zig is very loosly structured
<ifreund> just put it somewhere that makes sense to you
<novakane> allright
<novakane> anyway, I'll always use zls with zig master so didn't see the difference, I just wish when looking for a std function it woudln't open the const in std.zig
snakedye62 has joined #river
snakedye62 has quit [Client Quit]
<novakane> wait, there is a typo in the text_input filename too smh
<ifreund> looks good now :)
<novakane> sooo how close are we to the first river release now with zig 0.8.0 :P
<ifreund> probably won't happen before I get back to aachen in ~2 weeks
<ifreund> other than that, there are a few open bugs that would be nice to fix
<ifreund> I'd also like to put some time into at least thinking about river-control-v2 so we can keep that minimally breaking
<novakane> I see, sounds fair
<novakane> also I ask that whereas I don't even intend to stay on a stable release :P
<ifreund> yeah, I don't really expect anyone involved in the development to want to stick to a stable release
<ifreund> the point of doing the release is mostly so distros have something to package so that more people get hooked on river/zig and start contributing
<novakane> yeah, like an issue open like 2 days ago, also for distro that don't really package from git master it sure is important
<ifreund> as demonstrated by how many bug reports we've gotten about the AUR package, packaging river master with the mix of zig and wlroots versions floating around with breaking changes doesn't go well
<novakane> right without zig and wlroots it would be good but like this it's too much
snakedye has quit [Ping timeout: 272 seconds]
<novakane> well now all wlroots bind for IME support in river are here for dnkl to add it :P
novakane has quit [Quit: WeeChat 3.1]
yyp has quit [Remote host closed the connection]
snakedye has joined #river
waleee has quit [Ping timeout: 244 seconds]
snakedye has quit [Ping timeout: 252 seconds]