river-status: fix view-tags array size

This commit is contained in:
Isaac Freund 2020-06-26 12:31:04 +02:00
parent b6d981254b
commit 08d630567f
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -69,8 +69,8 @@ pub fn sendViewTags(self: Self) void {
};
var wl_array = c.wl_array{
.size = view_tags.items.len,
.alloc = view_tags.capacity,
.size = view_tags.items.len * @sizeOf(u32),
.alloc = view_tags.capacity * @sizeOf(u32),
.data = view_tags.items.ptr,
};
c.zriver_output_status_v1_send_view_tags(self.wl_resource, &wl_array);