Take future borders into account for surface size

This commit is contained in:
Isaac Freund
2020-04-04 23:26:15 +02:00
parent 149dd488a9
commit ea88cca35f
3 changed files with 15 additions and 10 deletions

View File

@ -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