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/
pkap has quit [Quit: Client closed]
snakedye has quit [Ping timeout: 245 seconds]
snakedye has joined #river
crypt_ has joined #river
<crypt_> hi anyone about
<crypt_> I have the follow function which almost works but is having issues with the swa() function
<crypt_> pub fn after_top(self: *Self, new_node: *Node) void {
<crypt_> self.push(new_node);
<crypt_> var first = self.first orelse return;
<crypt_> var it = ViewStack(View).iter(self.first, .forward, @as(u32, first.view.current.tags), filters.current);
<crypt_> const second = it.next() orelse return;
<crypt_> self.swap(first, &second);
<crypt_> }
<crypt_> the error that I get is
<crypt_> ./river/view_stack.zig:104:31: error: expected type '*view_stack.Node', found '*const *View'
<crypt_> self.swap(first, &second);
<crypt_> ^
<crypt_> ./river/view_stack.zig:104:31: note: cast discards const qualifier
<crypt_> any suggestions
<crypt_> self.swap(first, &second);
Hazoune has joined #river
snakedye has quit [Ping timeout: 245 seconds]
Hazoune has quit [Quit: Client closed]
waleee has quit [Ping timeout: 245 seconds]
crypt_ has quit [Ping timeout: 245 seconds]
crypt_ has joined #river
<crypt_> opps link went down
notzmv has quit [Ping timeout: 265 seconds]
dimaom has joined #river
leon-p has joined #river
dimaom_ has joined #river
dimaom has quit [Ping timeout: 245 seconds]
novakane has joined #river
notzmv has joined #river
<novakane> crypt_: it.next() return a ?*View not a Node IIRC
<novakane> also use a pastebin service to share code on IRC please
<crypt_> yeah I see that but am not sure how to convert between them so that I have matching types
<crypt_> will use pastebin in the future. Am away from home at the moment so was not thinking
<leon-p> could not help it: https://github.com/ifreund/river/pull/447
<novakane> crypt_: you probably want something like this https://github.com/ifreund/river/blob/master/river/command/swap.zig#L64
<novakane> leon-p: that looks good, it's would be some great protocols
<novakane> s/it's/it/
<crypt_> cool I will have a look at this tomorrow morning
crypt_ has quit [Ping timeout: 265 seconds]
snakedye has joined #river
<leon-p> worked a bit more on the river-view-management protocol concept and put some comments explaining it a bit in the PR. I think the direction is good, but obviously it needs feedback.
<leon-p> I also decided to put the z order into the hands of the VM (view manager). Given the annoyances this gave us in river especially w.r.t focus-follows-cursor, I think this will be nice
<leon-p> and I decided against integrating with foreign-toplevel, that would just be too complex.
<leon-p> novakane: perhaps. There is more than one way to represent colour though
<novakane> or maybe like a wl.Array { .red, .green, .blue, .alpha, }? Not sure how wl_array works
<ifreund> wl_array is just a bag of bytes, you can theoretically put anything you want in there
<ifreund> leon-p: nice, but don't expect a review from me before 0.1.0 is out
<leon-p> ifreund: no problem, I have some other stuff to do anyway. I just had a few ideas and this was the best way to write them down
<novakane> it looks good overall, for now I agree with the direction, need to think a bit about the open questions
snakedye has quit [Ping timeout: 245 seconds]
snakedye has joined #river
dimaom_ has quit [Quit: dimaom_]
dimaom has joined #river
snakedye has quit [Ping timeout: 245 seconds]
snakedye has joined #river
waleee has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
snakedye has quit [Ping timeout: 245 seconds]
snakedye has joined #river
Misthios has quit [Quit: Ping timeout (120 seconds)]
Misthios has joined #river
Misthios has quit [Client Quit]
Misthios has joined #river
dimaom has quit [Ping timeout: 265 seconds]
edrex[m] has quit [Ping timeout: 260 seconds]
pedrohlc[m] has quit [Ping timeout: 260 seconds]
dimaom has joined #river
edrex[m] has joined #river
pedrohlc[m] has joined #river
snakedye has quit [Ping timeout: 245 seconds]
snakedye has joined #river
dimaom_ has joined #river
dimaom has quit [Ping timeout: 265 seconds]
snakedye has quit [Ping timeout: 252 seconds]
snakedye has joined #river
ino has joined #river
ino has quit [Client Quit]
Guest91 has joined #river
Guest91 has quit [Client Quit]
novakane has quit [Quit: WeeChat 3.3]
dimaom has joined #river
dimaom_ has quit [Ping timeout: 260 seconds]
ecocode__ has quit [Ping timeout: 268 seconds]
ecocode__ has joined #river
dimaom has quit [Ping timeout: 260 seconds]
leon-p has quit [Quit: leon-p]