mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
view: scale maximize geometry correctly
This commit is contained in:
parent
fc76100fd5
commit
f863e1916d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue