[mutter/wip/carlosg/frames-client: 998/1005] x11: Fix size delta calculations
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/frames-client: 998/1005] x11: Fix size delta calculations
- Date: Mon, 12 Sep 2022 12:29:21 +0000 (UTC)
commit 245721ca1ba3abd434067b66997aefbdf0c0b0bb
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jun 10 15:36:39 2022 +0200
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
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 54d5da275d..ca794c439c 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -1297,8 +1297,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]