diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-13 17:25:39 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-13 17:25:39 +0200 |
| commit | b822084f39b568d7a1b65b0df7e77ec1dbb3c0bb (patch) | |
| tree | 179bf89821017a35d013822d097eeef0b07cb53e /src/command.zig | |
| parent | 0f52f664f22c81e3971cfbf62d0f2f6da90c98f1 (diff) | |
| download | river-b822084f39b568d7a1b65b0df7e77ec1dbb3c0bb.tar.gz river-b822084f39b568d7a1b65b0df7e77ec1dbb3c0bb.tar.xz | |
Allow storing *View in ViewStack
This is done in preparation for implementing focus stacks.
Diffstat (limited to 'src/command.zig')
| -rw-r--r-- | src/command.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command.zig b/src/command.zig index 1f2b483..b5c237a 100644 --- a/src/command.zig +++ b/src/command.zig @@ -3,6 +3,7 @@ const c = @import("c.zig"); const Log = @import("log.zig").Log; const Server = @import("server.zig").Server; +const View = @import("view.zig").View; const ViewStack = @import("view_stack.zig").ViewStack; pub const Arg = union { @@ -60,7 +61,7 @@ pub fn modifyMasterFactor(server: *Server, arg: Arg) void { pub fn zoom(server: *Server, arg: Arg) void { if (server.root.focused_view) |current_focus| { const output = server.root.focusedOutput(); - const node = @fieldParentPtr(ViewStack.Node, "view", current_focus); + const node = @fieldParentPtr(ViewStack(View).Node, "view", current_focus); if (node != output.views.first) { output.views.remove(node); output.views.push(node); |
