diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-28 14:47:50 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-28 14:47:50 +0100 |
| commit | 02910145c8c3b484908fdd67ea665344a303e393 (patch) | |
| tree | a383ead508ada97faf1ae8acb8894d550475d45f /src/root.zig | |
| parent | 866f2c7614ec23f1ef796c0eb67aca1d080a3bfc (diff) | |
| download | river-02910145c8c3b484908fdd67ea665344a303e393.tar.gz river-02910145c8c3b484908fdd67ea665344a303e393.tar.xz | |
Add new views to the top of the stack
Diffstat (limited to 'src/root.zig')
| -rw-r--r-- | src/root.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
