From ea88cca35f29fd4fef9f6fa4035950685fa4a5fd Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 4 Apr 2020 23:26:15 +0200 Subject: Take future borders into account for surface size --- src/view.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/view.zig') diff --git a/src/view.zig b/src/view.zig index 40debb0..398d4da 100644 --- a/src/view.zig +++ b/src/view.zig @@ -93,8 +93,8 @@ pub const View = struct { if (self.pending_box) |pending_box| { self.pending_serial = c.wlr_xdg_toplevel_set_size( self.wlr_xdg_surface, - pending_box.width, - pending_box.height, + pending_box.width - self.root.border_width * 2, + pending_box.height - self.root.border_width * 2, ); } else { // TODO: log warning -- cgit v1.2.3