diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-18 17:07:57 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-18 17:07:57 +0200 |
| commit | 837513d329e77c5387a40a8500f63a3bd9ced146 (patch) | |
| tree | 934dd02760c0c6fd1ca34506fdd55e397f478a3d /src/view.zig | |
| parent | fb2639a2264a279f20fef2ac385ef1e885026576 (diff) | |
| download | river-837513d329e77c5387a40a8500f63a3bd9ced146.tar.gz river-837513d329e77c5387a40a8500f63a3bd9ced146.tar.xz | |
Remove uneeded abstraction
Diffstat (limited to 'src/view.zig')
| -rw-r--r-- | src/view.zig | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/view.zig b/src/view.zig index f805acc..92af7ec 100644 --- a/src/view.zig +++ b/src/view.zig @@ -136,13 +136,6 @@ pub const View = struct { self.output = destination_output; } - /// Send a close event to the view's client - pub fn close(self: Self) void { - // Note: we don't call arrange() here as it will be called - // automatically when the view is unmapped. - c.wlr_xdg_toplevel_send_close(self.wlr_xdg_surface); - } - fn handleDestroy(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { const view = @fieldParentPtr(View, "listen_destroy", listener.?); const output = view.output; |
