01:13
pkap has quit [Quit: Client closed]
02:05
snakedye has quit [Ping timeout: 245 seconds]
02:06
snakedye has joined #river
02:07
crypt_ has joined #river
02:17
<
crypt_ >
hi anyone about
02:20
<
crypt_ >
I have the follow function which almost works but is having issues with the swa() function
02:20
<
crypt_ >
pub fn after_top(self: *Self, new_node: *Node) void {
02:20
<
crypt_ >
self.push(new_node);
02:20
<
crypt_ >
var first = self.first orelse return;
02:20
<
crypt_ >
var it = ViewStack(View).iter(self.first, .forward, @as(u32, first.view.current.tags), filters.current);
02:20
<
crypt_ >
const second = it.next() orelse return;
02:20
<
crypt_ >
self.swap(first, &second);
02:20
<
crypt_ >
the error that I get is
02:21
<
crypt_ >
./river/view_stack.zig:104:31: error: expected type '*view_stack.Node', found '*const *View'
02:21
<
crypt_ >
self.swap(first, &second);
02:21
<
crypt_ >
./river/view_stack.zig:104:31: note: cast discards const qualifier
02:21
<
crypt_ >
any suggestions
02:21
<
crypt_ >
self.swap(first, &second);
02:22
Hazoune has joined #river
03:34
snakedye has quit [Ping timeout: 245 seconds]
03:49
Hazoune has quit [Quit: Client closed]
03:49
waleee has quit [Ping timeout: 245 seconds]
04:49
crypt_ has quit [Ping timeout: 245 seconds]
04:56
crypt_ has joined #river
04:56
<
crypt_ >
opps link went down
05:06
notzmv has quit [Ping timeout: 265 seconds]
06:01
dimaom has joined #river
06:36
leon-p has joined #river
06:45
dimaom_ has joined #river
06:46
dimaom has quit [Ping timeout: 245 seconds]
06:50
novakane has joined #river
07:15
notzmv has joined #river
07:17
<
novakane >
crypt_: it.next() return a ?*View not a Node IIRC
07:18
<
novakane >
also use a pastebin service to share code on IRC please
07:36
<
crypt_ >
yeah I see that but am not sure how to convert between them so that I have matching types
07:37
<
crypt_ >
will use pastebin in the future. Am away from home at the moment so was not thinking
07:47
<
novakane >
leon-p: that looks good, it's would be some great protocols
07:47
<
novakane >
s/it's/it/
07:49
<
crypt_ >
cool I will have a look at this tomorrow morning
07:55
crypt_ has quit [Ping timeout: 265 seconds]
08:59
snakedye has joined #river
10:42
<
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.
10:45
<
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
10:46
<
leon-p >
and I decided against integrating with foreign-toplevel, that would just be too complex.
11:22
<
leon-p >
novakane: perhaps. There is more than one way to represent colour though
11:25
<
novakane >
or maybe like a wl.Array { .red, .green, .blue, .alpha, }? Not sure how wl_array works
11:25
<
ifreund >
wl_array is just a bag of bytes, you can theoretically put anything you want in there
11:26
<
ifreund >
leon-p: nice, but don't expect a review from me before 0.1.0 is out
11:28
<
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
11:33
<
novakane >
it looks good overall, for now I agree with the direction, need to think a bit about the open questions
11:52
snakedye has quit [Ping timeout: 245 seconds]
11:53
snakedye has joined #river
12:00
dimaom_ has quit [Quit: dimaom_]
12:42
dimaom has joined #river
13:20
snakedye has quit [Ping timeout: 245 seconds]
13:21
snakedye has joined #river
13:39
waleee has joined #river
14:28
snakedye has quit [Read error: Connection reset by peer]
14:29
snakedye has joined #river
15:38
snakedye has quit [Ping timeout: 245 seconds]
15:38
snakedye has joined #river
16:05
Misthios has quit [Quit: Ping timeout (120 seconds)]
16:05
Misthios has joined #river
16:08
Misthios has quit [Client Quit]
16:13
Misthios has joined #river
16:20
dimaom has quit [Ping timeout: 265 seconds]
16:21
edrex[m] has quit [Ping timeout: 260 seconds]
16:21
pedrohlc[m] has quit [Ping timeout: 260 seconds]
16:35
dimaom has joined #river
16:38
edrex[m] has joined #river
16:39
pedrohlc[m] has joined #river
16:46
snakedye has quit [Ping timeout: 245 seconds]
16:47
snakedye has joined #river
16:58
dimaom_ has joined #river
16:59
dimaom has quit [Ping timeout: 265 seconds]
17:16
snakedye has quit [Ping timeout: 252 seconds]
17:16
snakedye has joined #river
18:21
ino has joined #river
18:25
ino has quit [Client Quit]
20:10
Guest91 has joined #river
20:10
Guest91 has quit [Client Quit]
20:40
novakane has quit [Quit: WeeChat 3.3]
20:58
dimaom has joined #river
20:59
dimaom_ has quit [Ping timeout: 260 seconds]
21:25
ecocode__ has quit [Ping timeout: 268 seconds]
21:30
ecocode__ has joined #river
22:02
dimaom has quit [Ping timeout: 260 seconds]
22:06
leon-p has quit [Quit: leon-p]