From 02910145c8c3b484908fdd67ea665344a303e393 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 28 Mar 2020 14:47:50 +0100 Subject: Add new views to the top of the stack --- src/root.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/root.zig') diff --git a/src/root.zig b/src/root.zig index 473eb2d..b6f928e 100644 --- a/src/root.zig +++ b/src/root.zig @@ -67,7 +67,7 @@ pub const Root = struct { pub fn addView(self: *Self, wlr_xdg_surface: *c.wlr_xdg_surface) void { const node = self.views.allocateNode(self.server.allocator) catch unreachable; node.data.init(self, wlr_xdg_surface); - self.unmapped_views.append(node); + self.unmapped_views.prepend(node); } /// Finds the topmost view under the output layout coordinates lx, ly -- cgit v1.2.3