Allow storing *View in ViewStack
This is done in preparation for implementing focus stacks.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user