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>
This commit is contained in:
Carlos Garnacho 2022-06-10 15:36:39 +02:00 committed by Marge Bot
parent bbd988cbc5
commit f5cb8a73d5

View File

@ -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;