view: introduce state struct to simplify code
The state struct holds all of the state that is double-buffered and applied through transactions. This more explicit handling simplifies much of the code, and will allow for easier implementation of new feature such as fullscreen.
This commit is contained in:
@ -62,7 +62,7 @@ pub fn sendViewTags(self: Self) void {
|
||||
|
||||
var it = ViewStack(View).iterator(self.output.views.first, std.math.maxInt(u32));
|
||||
while (it.next()) |node|
|
||||
view_tags.append(node.view.current_tags) catch {
|
||||
view_tags.append(node.view.current.tags) catch {
|
||||
c.wl_resource_post_no_memory(self.wl_resource);
|
||||
log.crit(.river_status, "out of memory", .{});
|
||||
return;
|
||||
|
Reference in New Issue
Block a user