aboutsummaryrefslogtreecommitdiff
path: root/src/command/close_view.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-18 17:07:57 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-18 17:07:57 +0200
commit837513d329e77c5387a40a8500f63a3bd9ced146 (patch)
tree934dd02760c0c6fd1ca34506fdd55e397f478a3d /src/command/close_view.zig
parentfb2639a2264a279f20fef2ac385ef1e885026576 (diff)
downloadriver-837513d329e77c5387a40a8500f63a3bd9ced146.tar.gz
river-837513d329e77c5387a40a8500f63a3bd9ced146.tar.xz
Remove uneeded abstraction
Diffstat (limited to 'src/command/close_view.zig')
-rw-r--r--src/command/close_view.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command/close_view.zig b/src/command/close_view.zig
index b0f03b9..dbad86b 100644
--- a/src/command/close_view.zig
+++ b/src/command/close_view.zig
@@ -6,6 +6,8 @@ const Seat = @import("../seat.zig").Seat;
/// Close the focused view, if any.
pub fn close_view(seat: *Seat, arg: Arg) void {
if (seat.focused_view) |view| {
- view.close();
+ // Note: we don't call arrange() here as it will be called
+ // automatically when the view is unmapped.
+ c.wlr_xdg_toplevel_send_close(view.wlr_xdg_surface);
}
}