From: Johan Malm Date: Sun, 21 Mar 2021 21:06:45 +0000 (+0000) Subject: view: scale maximize geometry correctly X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=f863e1916d7c531ae36d7c19b7b4019fa5572143;p=proto%2Flabwc.git view: scale maximize geometry correctly --- diff --git a/src/view.c b/src/view.c index 810dd65c..9aeae4d5 100644 --- a/src/view.c +++ b/src/view.c @@ -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;