From 06be60bc72bd96f098b4d61bd350c46ac955c64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 20 Dec 2018 17:21:26 +0100 Subject: [PATCH] shaped-texture: Stop using gdk rect helper We have our own version, just use that. https://gitlab.gnome.org/GNOME/mutter/merge_requests/362 --- src/compositor/meta-shaped-texture.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 68098a536..6cde86390 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -940,9 +940,7 @@ meta_shaped_texture_get_image (MetaShapedTexture *stex, if (clip != NULL) { - /* GdkRectangle is just a typedef of cairo_rectangle_int_t, - * so we can use the gdk_rectangle_* APIs on these. */ - if (!gdk_rectangle_intersect (&texture_rect, clip, clip)) + if (!meta_rectangle_intersect (&texture_rect, clip, clip)) return NULL; }