From 358b67871fabb1174591ee5c97cf8b2fe59c6a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 5 Mar 2019 20:10:32 +0100 Subject: [PATCH] boxes: Assign input to output rect when there's no transformation https://gitlab.gnome.org/GNOME/mutter/merge_requests/469 --- src/core/boxes.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/boxes.c b/src/core/boxes.c index 0e9affec4..29cba5778 100644 --- a/src/core/boxes.c +++ b/src/core/boxes.c @@ -2068,12 +2068,7 @@ meta_rectangle_transform (const MetaRectangle *rect, switch (transform) { case META_MONITOR_TRANSFORM_NORMAL: - *dest = (MetaRectangle) { - .x = rect->x, - .y = rect->y, - .width = rect->width, - .height = rect->height, - }; + *dest = *rect; break; case META_MONITOR_TRANSFORM_90: *dest = (MetaRectangle) {