river-status: fix view-tags array size
This commit is contained in:
parent
b6d981254b
commit
08d630567f
@ -69,8 +69,8 @@ pub fn sendViewTags(self: Self) void {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var wl_array = c.wl_array{
|
var wl_array = c.wl_array{
|
||||||
.size = view_tags.items.len,
|
.size = view_tags.items.len * @sizeOf(u32),
|
||||||
.alloc = view_tags.capacity,
|
.alloc = view_tags.capacity * @sizeOf(u32),
|
||||||
.data = view_tags.items.ptr,
|
.data = view_tags.items.ptr,
|
||||||
};
|
};
|
||||||
c.zriver_output_status_v1_send_view_tags(self.wl_resource, &wl_array);
|
c.zriver_output_status_v1_send_view_tags(self.wl_resource, &wl_array);
|
||||||
|
Loading…
Reference in New Issue
Block a user