aboutsummaryrefslogtreecommitdiff
path: root/src/Output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-05-11 23:43:04 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-05-11 23:43:04 +0200
commit5bec8f4fcb361d3c7527d367bc66c0810e3c91d9 (patch)
treed75a4ea10140d854efbd8d2c4d9f7654c9b15c78 /src/Output.zig
parentb2f172e91b2d75b0b2af02621ab302afce3a94d6 (diff)
downloadriver-5bec8f4fcb361d3c7527d367bc66c0810e3c91d9.tar.gz
river-5bec8f4fcb361d3c7527d367bc66c0810e3c91d9.tar.xz
Only store mapped views in the view stack
Diffstat (limited to 'src/Output.zig')
-rw-r--r--src/Output.zig9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Output.zig b/src/Output.zig
index cb5cba4..c2315bc 100644
--- a/src/Output.zig
+++ b/src/Output.zig
@@ -147,15 +147,6 @@ pub fn getRenderer(self: Self) *c.wlr_renderer {
return c.river_wlr_backend_get_renderer(self.wlr_output.backend);
}
-/// Add a new view to the output. arrangeViews() will be called by the view
-/// when it is mapped. The surface argument must be a c.wlr_xdg_surface or
-/// c.wlr_xwayland_surface (if xwayland is enabled)
-pub fn addView(self: *Self, surface: var) !void {
- const node = try self.root.server.allocator.create(ViewStack(View).Node);
- node.view.init(self, self.current_focused_tags, surface);
- self.views.push(node);
-}
-
/// Add a newly created layer surface to the output.
pub fn addLayerSurface(self: *Self, wlr_layer_surface: *c.wlr_layer_surface_v1) !void {
const layer = wlr_layer_surface.client_pending.layer;