]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: scale maximize geometry correctly
authorJohan Malm <jgm323@gmail.com>
Sun, 21 Mar 2021 21:06:45 +0000 (21:06 +0000)
committerJohan Malm <jgm323@gmail.com>
Sun, 21 Mar 2021 21:06:45 +0000 (21:06 +0000)
src/view.c

index 810dd65cbcf5d0ca70cd65178d4d747308c73fa5..9aeae4d5c7d8fd54e47593a85d93e97a68068523 100644 (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;