aboutsummaryrefslogtreecommitdiff
path: root/src/output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-25 21:40:26 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-26 12:29:08 +0200
commit454e2454b68841a90cb321b672adaeac8d10ed87 (patch)
tree16f904a82df0198ac0e7129994dc773e380bd349 /src/output.zig
parent609eeae6f446247f2cc3219d65b25647de828cb3 (diff)
downloadriver-454e2454b68841a90cb321b672adaeac8d10ed87.tar.gz
river-454e2454b68841a90cb321b672adaeac8d10ed87.tar.xz
Separate View from its implementation
This is done in preperation for Xwayland support
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output.zig b/src/output.zig
index a2b7de9..59b43dd 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -119,7 +119,7 @@ pub const Output = struct {
/// when it is mapped.
pub fn addView(self: *Self, wlr_xdg_surface: *c.wlr_xdg_surface) void {
const node = self.root.server.allocator.create(ViewStack(View).Node) catch unreachable;
- node.view.init(self, wlr_xdg_surface, self.current_focused_tags);
+ node.view.init_xdg_toplevel(self, self.current_focused_tags, wlr_xdg_surface);
self.views.push(node);
}