From d3301d6b53cab840f5f5afacae5c13ede6baa0c7 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 20b06868c..18d2524f7 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -1072,9 +1072,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; }