Allow storing *View in ViewStack

This is done in preparation for implementing focus stacks.
This commit is contained in:
Isaac Freund
2020-04-13 17:25:39 +02:00
parent 0f52f664f2
commit b822084f39
6 changed files with 206 additions and 196 deletions

View File

@ -156,7 +156,7 @@ pub const View = struct {
const view = @fieldParentPtr(View, "listen_destroy", listener.?);
const output = view.output;
const node = @fieldParentPtr(ViewStack.Node, "view", view);
const node = @fieldParentPtr(ViewStack(View).Node, "view", view);
output.views.remove(node);
output.root.server.allocator.destroy(node);
}