From 1ebaaa1950efc4f8d8c2eb13d8b94a030a751b66 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 5 Feb 2014 13:39:47 -0500 Subject: [PATCH] shaped-texture: Clean up code flow a bit This is easier for me to read. --- src/compositor/meta-shaped-texture.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index e3c36cd05..6c11d7036 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -646,18 +646,17 @@ meta_shaped_texture_update_area (MetaShapedTexture *stex, cairo_region_get_extents (intersection, &damage_rect); clutter_actor_queue_redraw_with_clip (CLUTTER_ACTOR (stex), &damage_rect); cairo_region_destroy (intersection); - return TRUE; } cairo_region_destroy (intersection); - return FALSE; } - - clutter_actor_queue_redraw_with_clip (CLUTTER_ACTOR (stex), &clip); - - return TRUE; + else + { + clutter_actor_queue_redraw_with_clip (CLUTTER_ACTOR (stex), &clip); + return TRUE; + } } /**