background-content: Fix an x/y mixup

Fortunately the coordinate is local and always (0,0) so it didn't
break anything.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1341
This commit is contained in:
Daniel van Vugt 2020-06-30 17:00:11 +08:00
parent b8524504f4
commit 9823a0f6c9

View File

@ -497,7 +497,7 @@ meta_background_content_paint_content (ClutterContent *content,
clutter_actor_get_content_box (actor, &actor_box);
actor_pixel_rect.x = actor_box.x1;
actor_pixel_rect.y = actor_box.x1;
actor_pixel_rect.y = actor_box.y1;
actor_pixel_rect.width = actor_box.x2 - actor_box.x1;
actor_pixel_rect.height = actor_box.y2 - actor_box.y1;