<NickH>
vertical24: I like that idea for stacktile.
elshize has quit [Ping timeout: 268 seconds]
<leon-p>
yeah stacktile is in need of a redesign and I have a decently long list of features I'd like to support, but it might take me some time to get around to it
elshize has joined #river
<NickH>
leon-p: I had a go at implementing it.
<leon-p>
ah, neat!
<NickH>
First time using sourcehut. Haven't yet worked out how to do merge/pull request or equivalent.
<NickH>
This puzzles me becuase the uint32_t cast makes is look like it can't decrement the the primary_count. I guess it is doing something with the uint wrapping around?
talismanick has quit [Ping timeout: 244 seconds]
<leon-p>
damn, that actually is a weird bit of code. It works, but it's not very obvious
<leon-p>
feel free to improve the readability of that
<leon-p>
btw, you may want to use the CLAMP macro
<leon-p>
that should probably make the intent a bit clearer
<NickH>
Yeah.
<NickH>
So your current implementation will happliy wrap primary_count around at both the upper and lower limits of uint32_t?
<leon-p>
tbh I can't really get in the headspace right no to understand what I committed about a year ago at 22:01 in the night, likely high on caffeine
<leon-p>
but it does remind me that I really should lobby for 383 to make it into the next release
<leon-p>
which I apparently created around the same time I wrote that code, neat
snakedye has joined #river
<NickH>
Ok, think I understand what the existing code was doing. It didn't wrap at zero, it just kept primary_count equal to zero if there was an attempt to decrement it.
<NickH>
I sqaushed my changes into a single commit. My testing indicates that it works correctly.
<NickH>
It is quite readable (to me at least) and I think it conforms with the style you are using.
<NickH>
I just sent it.
<leon-p>
I'll have a look when I am back
kitty4 has quit [Ping timeout: 268 seconds]
kitty4 has joined #river
<NickH>
Cheers
elshize has quit [Ping timeout: 252 seconds]
elshize has joined #river
snakedye has quit [Ping timeout: 255 seconds]
snakedye has joined #river
kitty4 has quit [Ping timeout: 264 seconds]
kitty4 has joined #river
mannerism has quit [Remote host closed the connection]
mannerism has joined #river
kitty4 has quit [Ping timeout: 268 seconds]
snakedye has quit [Ping timeout: 268 seconds]
snakedye has joined #river
_whitelogger has joined #river
fitrh has joined #river
snakedye has quit [Ping timeout: 268 seconds]
fitrh has quit [Quit: fitrh]
waleee has joined #river
snakedye has joined #river
wrkzk has joined #river
snakedye has quit [Ping timeout: 268 seconds]
snakedye has joined #river
snakedye has quit [Ping timeout: 268 seconds]
snakedye has joined #river
snakedye has quit [Remote host closed the connection]
snakedye has joined #river
me_ has joined #river
me_ is now known as Ordoviz
Ordoviz has quit [Quit: Ordoviz]
me_ has joined #river
me_ has quit [Remote host closed the connection]
talismanick has joined #river
Ordoviz has joined #river
Ordoviz has quit [Ping timeout: 252 seconds]
Ristovski has joined #river
talismanick has quit [Ping timeout: 244 seconds]
<Ristovski>
river has no trouble starting under x11 when wlroots has the x11-backend enabled, however riverctl prints "error: ConnectFailed", any ideas? or is this simply not possible
<Ristovski>
ah, it works when you set WAYLAND_DISPLAY