[mutter] boxes: Assign input to output rect when there's no transformation
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] boxes: Assign input to output rect when there's no transformation
- Date: Tue, 21 May 2019 09:34:40 +0000 (UTC)
commit 358b67871fabb1174591ee5c97cf8b2fe59c6a61
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date: Tue Mar 5 20:10:32 2019 +0100
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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]