From f5cb8a73d55c578237a33723b316381461959f16 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 10 Jun 2022 15:36:39 +0200 Subject: [PATCH] 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: --- src/x11/window-x11.c | 4 ++-- 1 file 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;