From f863e1916d7c531ae36d7c19b7b4019fa5572143 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sun, 21 Mar 2021 21:06:45 +0000 Subject: [PATCH] view: scale maximize geometry correctly --- src/view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;