view: scale maximize geometry correctly

This commit is contained in:
Johan Malm 2021-03-21 21:06:45 +00:00
parent fc76100fd5
commit f863e1916d

View file

@ -84,7 +84,8 @@ view_maximize(struct view *view, bool maximize)
box.width -= border.right + border.left;
box.height -= border.top + border.bottom;
}
scale_box(&box, 1 / output->scale);
box.width /= output->scale;
box.height /= output->scale;
view_move_resize(view, box);
view_move(view, box.x, box.y);
view->maximized = true;