From be8df206756a0481c79d8d28a14e234b61ebbc9f Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 8 Jul 2011 22:33:45 -0400 Subject: [PATCH] Fix typo when computing shadow bounds A x/y typo that was causing shadow bounds to be incorrectly computed and trails to be left in some circumstances. Behavior noted by Jakub Steiner. https://bugzilla.gnome.org/show_bug.cgi?id=649374 --- src/compositor/meta-shadow-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-shadow-factory.c b/src/compositor/meta-shadow-factory.c index f8bb1a838..ef35710bb 100644 --- a/src/compositor/meta-shadow-factory.c +++ b/src/compositor/meta-shadow-factory.c @@ -371,7 +371,7 @@ meta_shadow_get_bounds (MetaShadow *shadow, cairo_rectangle_int_t *bounds) { bounds->x = window_x - shadow->outer_border_left; - bounds->y = window_x - shadow->outer_border_top; + bounds->y = window_y - shadow->outer_border_top; bounds->width = window_width + shadow->outer_border_left + shadow->outer_border_right; bounds->height = window_height + shadow->outer_border_top + shadow->outer_border_bottom; }