ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor || https://github.com/riverwm/river || channel logs: https://libera.irclog.whitequark.org/river/
<spiralbundle> okay, ty for the help!
spiralbundle has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
<NickH> No problem.
lxsameer has quit [Ping timeout: 272 seconds]
snakedye has quit [Ping timeout: 272 seconds]
snakedye has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
snakedye has quit [Ping timeout: 248 seconds]
snakedye has joined #river
snakedye has quit [Ping timeout: 240 seconds]
snakedye has joined #river
waleee has quit [Ping timeout: 252 seconds]
snakedye has quit [Ping timeout: 272 seconds]
pkap has joined #river
pkap has quit [Quit: Client closed]
<ifreund> Shinyzenith[m]: I (and most others here I believe) use firefox so I could have easily missed recent chromium bugs
<ifreund> the most useful thing to debug this would be a stack trace, plus the river and chromium versions you are using (ideally river master)
<ifreund> and the github issue track would be the right place to share this information :)
<Shinyzenith[m]> alright, I'll first compile master, test, and then if I can reproduce I'll get back to you
<Shinyzenith[m]> but at the time of writing I'm on `0.2.0-dev-d47be3b` river and `Version 101.0.4951.64 (Official Build) Arch Linux (64-bit)` chromium
<Shinyzenith[m]> s/but/Note:/, s/at/At/
lxsameer has joined #river
snakedye has joined #river
<nor[m]> When I do `su otheruser` (and type in his password obviously) and try to launch a graphical application, it fails (which makes sense). Can I change this? I would like to use multiple users applications within the same graphical environment.
<ifreund> nor[m]: You'd need to have the same WAYLAND_DISPLAY and XDG_RUNTIME_DIR set in the environment
<ifreund> XDG_RUNTIME_DIR is a bit problematic though as it's specified to have 700 permissions
<nor[m]> Thanks for the hint.
<mizzunet> I mapped j key to be spawn "wtype -P Left".
<mizzunet> But holding down j doens't repeat the execution. Just executes for a time
<mizzunet> Can I make it to run repeately?
<mizzunet> Looking at manpage, I see that there's -repeat which might help in my case. But that makes it not run at all
<mizzunet> riverctl map -repeat normal None j spawn "wtype -P Left"
<Shinyzenith[m]> I think I might've found a bug?
<Shinyzenith[m]> all I'm doing is literally just receiving a frame and then printing the event, nothing fancy
<Shinyzenith[m]> Oh wait nvm, I think I need to generate wl_shm bindings too as stated earlier
<Shinyzenith[m]> * ~~I think I might've found a bug?~~
<Shinyzenith[m]> * ~I think I might've found a bug?~
<Shinyzenith[m]> * I think I might've found a bug?
<ifreund> Shinyzenith[m]: please don't excessively use matrix features, this is what shows up on our end: https://0x0.st/oaT_.txt
<ifreund> also not a huge fan of screenshots of text
<ifreund> it seems like you figured out your issue though?
<ifreund> mizzunet: that's not going to work unfortunately because wtype is a bit of a hack
<ifreund> runnning `wtype -P Left` causes river to see that the Left key was pressed and stop currently repeating mappings
<Shinyzenith[m]> <ifreund> "it seems like you figured out..." <- Yes I did, apologies for the screenshots. Didn't know it showed up like that on irc.
<ifreund> no worries!
<tiosgz`> ifreund: (nearly)double-copy-paste error in last waylock commit? (in README)
<ifreund> tiosgz`: yep, thanks
waleee has joined #river
<novakane> that new river version syntax is nice
<novakane> probably gonna use it for my projets too
<ifreund> novakane: go for it, I stole it from zig after reading the semver spec
<novakane> ifreund: oh, that what zig master use?
<ifreund> yup
<novakane> cool
lxsameer has quit [Ping timeout: 246 seconds]
icp has joined #river
notzmv has quit [Ping timeout: 244 seconds]
icp has quit [Quit: Client closed]
<mizzunet> ifreund, Oh. I was trying to make a mode with helix keybinding
snakedye has quit [Ping timeout: 240 seconds]
<Shinyzenith[m]> https://pastebin.com/yQqZVvVS I wrote this section and I don't quite understand why the frame events are never fired
<Shinyzenith[m]> the while loop runs forever
<Shinyzenith[m]> I'm definitely doing something wrong but I don't see it just yet
<ifreund> a WAYLAND_DEBUG log would be much more helpful
<Shinyzenith[m]> looks like it's just stuck on my capture call
<Shinyzenith[m]> ran it again and this time it progressed past the capture call... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/96d5e197e0d86f3b699c85bd7d326805cef30de2)
<ifreund> Shinyzenith[m]: hmm, it seems like you're probably queuing the event but never actually sending it to the server
<ifreund> are you calling wl.Display.dispatch()?
<Shinyzenith[m]> Yep
<Shinyzenith[m]> tried both dispatch and roundtrip
snakedye has joined #river
<ifreund> Shinyzenith[m]: oh, in your code you dispatch before setting up a listener
<Shinyzenith[m]> the line right after const frame = ?
<ifreund> perhaps libwayland is dropping the events as you have no listener set
<ifreund> yes
<Shinyzenith[m]> already tried removing that, it panics
<Shinyzenith[m]> thread 14025 panic: reached unreachable code
<Shinyzenith[m]> ???:?:?: 0x209897 in ??? (???)
<Shinyzenith[m]> [1] 14025 IOT instruction ./zig-out/bin/zigshot
<ifreund> Ok, then I definitely can't help without seeing more code
<ifreund> it sounds like you have UB somewhere
<Shinyzenith[m]> Alright I'll give you a link of the source
<Shinyzenith[m]> it's Zigshot.zig and right at the end
notzmv has joined #river
<ifreund> Shinyzenith[m]: you'll be happy to know that this one was my bug :/
<ifreund> will push a fix to zig-wayland in a minute
<Shinyzenith[m]> Oh, what caused it?
<ifreund> more fallout from the change to only generate events/requests less than a specific version
<ifreund> actually, I think this may have always been wrong but the circumstances weren't right for it to appear until now
<Shinyzenith[m]> ifreund: Ok understood. Since you've already taken a look at it, would you mind critiquing the structure of the project? I'm new to zig and wayland in general and I think that would help.
<ifreund> Shinyzenith[m]: should be fixed, note that you are passing version 3 to wl.Registry.bind() but only generating version 1 of that interface so zig-wayland will only bind version 1
<ifreund> as for code structure, I personally would keep things all in one file for quite a bit longer
<ifreund> if you want to check out a wayland client I've written in zig, see https://github.com/ifreund/waylock
<Shinyzenith[m]> ifreund: noticed it just a few minutes back, already fixed!
<Shinyzenith[m]> Yep already read waylock, both rust and zig
<Shinyzenith[m]> ifreund: Alright
<ifreund> Shinyzenith[m]: I'm glad you did do that version mismatch though, it's what triggered this zig-wayland bug which is now fixed :)
<Shinyzenith[m]> 😆I guess mistakes are indeed hidden blessings
talismanick has quit [Read error: Connection reset by peer]
<Shinyzenith[m]> So the code I wrote is fine right? apart from the bindings I generated, which has been fixed.
<ifreund> Shinyzenith[m]: calling dispatch before setting the listener will still cause the events to be dropped
<ifreund> otherwise I didn't see anything wrong
<Shinyzenith[m]> yeah it works now, Thanks Isaac!
<Shinyzenith[m]> ifreund: Yep, realized that and deleted the line
<ifreund> no problem, thanks for catching my zig-wayland bugs
<Shinyzenith[m]> 😆
lxsameer has joined #river
londoed has quit [Read error: Connection reset by peer]
londoed has joined #river
snakedye has quit [Ping timeout: 272 seconds]
snakedye has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river