Anderson-D has quit [Quit: Connection closed for inactivity]
snakedye has joined #river
snakedye has quit [Ping timeout: 240 seconds]
snakedye has joined #river
mon_aaraj has quit [Remote host closed the connection]
mon_aaraj has joined #river
Guest65 has joined #river
Guest65 has quit [Client Quit]
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #river
mon_aaraj has quit [Ping timeout: 256 seconds]
waleee has quit [Ping timeout: 250 seconds]
mon_aaraj has joined #river
snakedye has quit [Ping timeout: 240 seconds]
snakedye has joined #river
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #river
notzmv has quit [Ping timeout: 250 seconds]
notzmv has joined #river
mon_aaraj has quit [Ping timeout: 256 seconds]
norkki has joined #river
masoudd has joined #river
snakedye has quit [Ping timeout: 256 seconds]
snakedye has joined #river
mon_aaraj has joined #river
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #river
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #river
emersion has quit [Remote host closed the connection]
emersion has joined #river
mon_aaraj has quit [Ping timeout: 240 seconds]
snakedye has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #river
snakedye has joined #river
Moulberry has joined #river
<Moulberry>
Does anyone have a patch for smart borders? There doesn't appear to be an option
<novakane>
Moulberry: there is not, it's a bit hacky to make currently
<Moulberry>
yep I remember making it 6 months ago it was very cursed
<Moulberry>
iirc the problem was that rivertile doesn't know the total number of views in it?
<Moulberry>
oh perhaps that is not the case any more
<novakane>
rivertile does know the number of view that what I used for smart gaps in rivercarro, but rivertile doesn't know about the borders gaps, so it would need to be set in the layout generator, and then use river-control-protocol to change the size
<novakane>
the problem is that everytime you change the size it send a layout_demand event, but you need to only have one if there is only one view, if there you go from one view to multiple view but only the first time
<Moulberry>
hm yeah it was that LayoutDemand.zig didn't have the total number of views
<Moulberry>
is there a problem with setting the border_width to 0 if `x == 0 and y == 0 and width == output.usable_box.width and height == output.usable_box.height;` in pushViewDimensions?
<Moulberry>
seems to function... but is hacky as you said
<novakane>
that on river side not rivertile?
<novakane>
s/that/that's/
<Moulberry>
oh you can just check if `self.view_boxen.len == 1`... smart borders seems very easy
<Moulberry>
and... yes, its on river's side, but I never said it had to be done by rivertile
<novakane>
for a river fork sure, but it would need to be on a layout generator to have a good design
<Moulberry>
theres other changes I need to make to river anyways, but yeah I see your point
Moulberry has quit [Quit: Client closed]
snakedye has quit [Ping timeout: 256 seconds]
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #river
waleee has joined #river
mon_aaraj has quit [Ping timeout: 240 seconds]
<novakane>
btw ifreund for the explicit zig-wayland PR I'll probably let it like that till you have time for a review, no rush just to let you know
<ifreund>
novakane: what's the state right now? Is it working?
<novakane>
yeah it works but maybe not exactly as wanted
mon_aaraj has joined #river
<novakane>
a client could don't use scanner.interface() in its build.zig and nothing would be wrong
<novakane>
s/don't/not/
<ifreund>
I don't unterstand, what does calling scanner.interface() with your PR do then?
<novakane>
ifreund: well you set a version in it and then the scanner only generate the event/request for < version
gwizon has joined #river
gwizon has quit [Client Quit]
<novakane>
but yeah it doesn't enforce to have it in your build.zig for all global interface, I couldn't make something that would do that yet
<ifreund>
I'll try to take a look sometime soon, got a lot of stuff I'm supposed to be doing right now
<ifreund>
(e.g. that monthly status update I said I'd write which is now 3 days late :D)
<novakane>
lol no worries, fill my rss reader first :P
<novakane>
but getting a list of global interface needed for a project and pass that around the scanner is way more annoying than expected ^^
elshize has quit [Remote host closed the connection]
mon_aaraj has quit [Ping timeout: 240 seconds]
mon_aaraj has joined #river
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #river
snakedye has joined #river
masoudd has quit [Read error: Connection reset by peer]
kraem has quit [Quit: WeeChat 3.3]
snakedye has quit [Ping timeout: 240 seconds]
snakedye has joined #river
snakedye has quit [Ping timeout: 240 seconds]
snakedye has joined #river
<leon-p>
hmm... somehow a client that does not even has a mapped toplevel yet can bring river up to 50% usage on my laptop
anb1 has quit [Ping timeout: 240 seconds]
<leon-p>
yep, it somehow floods river with requests
<ifreund>
what requests?
<leon-p>
sync
<leon-p>
so probably a client bug?
<ifreund>
yup
<ifreund>
ideally we would rate limit/kill clients that seem to be buggy, but I don't know of any wayland compositor that actually does that
<leon-p>
it's a gtk thing, so thats a bit weird since I'd assume gtk takes care of the Wayland stuff, but apparently it allows enough control for application devs to still screw things up
<leon-p>
I think it's a bit hard to rate limit or kill clients, because you'd need pretty good heuristics to not kill fine clients that just happen to send a lot of requests (like high-fps video players or games).