Skip to content

Commit

Permalink
fixup! resize: use proper dx/dy for determining shrinking or growing
Browse files Browse the repository at this point in the history
  • Loading branch information
ammen99 committed Feb 17, 2025
1 parent 49357c2 commit 3448c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/single_plugins/resize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class wayfire_resize : public wf::per_output_plugin_instance_t, public wf::point
{
float new_ratio = 1.0 * desired.width / desired.height;
if ((new_ratio < ratio) ^ does_shrink(desired.width - grabbed_geometry.width,
desired.height - grabbed_geometry.height))
desired.height - grabbed_geometry.height))
{
// If we do not shrink: the window is taller than it should be, so expand width first.
// If we do shrink: the window is wider than it should be, so shrink width first.
Expand Down

0 comments on commit 3448c8f

Please sign in to comment.