Jano[m] has quit [Read error: Connection reset by peer]
sjtio has quit [Read error: Connection reset by peer]
sjtio has joined #river
Jano[m] has joined #river
Misthios8 has joined #river
Misthios has quit [Ping timeout: 264 seconds]
Misthios8 is now known as Misthios
novakane has joined #river
<leon-p>
I wonder if perhaps LibinputDevice in zig-wlroots should be exported and public
<leon-p>
that way I can have functions expect it as a parameter and do the pointer cast only when passing it to c functions.
<leon-p>
although on second though I prefer to @ptrCast only once
novakane has quit [Quit: WeeChat 3.1]
novakane has joined #river
<novakane>
ifreund: no more problem in firefox with the last commit :)
<leon-p>
the input configuration thing compiles, now I only need to make it work :P
<novakane>
nah, compiling is enough :P
<leon-p>
I am pretty sure most of it will work already, just some scrolling things are missing and it will only apply to new devices, not already present ones
<leon-p>
oh, and everything keyboard related as well as calibration matrices are not there yet either, but that can be added later.
<novakane>
well if you're just implement tap-to-click that's enough for me :D
<novakane>
can't wait to remove libinput-config hack
<leon-p>
tap is implemented.
<leon-p>
command will be `riverctl input <input-device-identifier> tap enable`
<novakane>
nice!
<ifreund>
I should try writing an input-config-v1 protocol
<ifreund>
the structure can probably mirror wlr-output-management pretty closely
<ifreund>
not input-config-v1, ext-input-management-v1
<ifreund>
leon-p: yeah, the single @ptrCast() approach makes the most sense to me
<leon-p>
would be the nicer solution, but I am not sure if that protocol would gain a lot of traction
<ifreund>
I haven't looked at libinput's API much, would manual bindings be worth it?
<leon-p>
no idea
<ifreund>
why wouldn't it gain traction? I imagine most wlroots-based compositors would support it if I do a good implementation in wlroots
<leon-p>
I think they have something weird going on with having multiple different libinput_device_{type} structs that AFAIAW are never used anywhere, but other than that it's straight forward
<leon-p>
ifreund: because whenever that idea was brought up, the general reaction was "why?"
<leon-p>
do you intent the protocol to just do libinput stuff or also keyboard configuration?
<ifreund>
haven't looked into this in enough detail to be able to answer that
<leon-p>
well I still think the protocol is the better approach, but I'd ask over in #sway-devel if there is any interest in it before starting to work on that