diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2022-06-10 15:36:39 +0200 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-12-01 20:10:53 +0000 |
commit | f5cb8a73d55c578237a33723b316381461959f16 (patch) | |
tree | 149afb65a1bdacdcaee8dc66978732f2e20953ca | |
parent | bbd988cbc5ea8594d141e449958ac08eba5cc70a (diff) | |
download | mutter-f5cb8a73d55c578237a33723b316381461959f16.tar.gz |
x11: Fix size delta calculations
This used to be a comparison between old/new width and height, but
broke long ago.
Fixes: 6e06648f - window: Refactor all move/resize operations to be in frame rect space
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2175>
-rw-r--r-- | src/x11/window-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index 58409609a..6b82d16b8 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -1317,8 +1317,8 @@ meta_window_x11_move_resize_internal (MetaWindow *window, meta_frame_calc_borders (window->frame, &borders); - size_dx = constrained_rect.x - window->rect.width; - size_dy = constrained_rect.y - window->rect.height; + size_dx = constrained_rect.width - window->rect.width; + size_dy = constrained_rect.height - window->rect.height; window->rect = constrained_rect; |