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
This commit is contained in:
Owen W. Taylor 2011-07-08 22:33:45 -04:00
parent 4a10c95e76
commit be8df20675

View File

@ -371,7 +371,7 @@ meta_shadow_get_bounds (MetaShadow *shadow,
cairo_rectangle_int_t *bounds) cairo_rectangle_int_t *bounds)
{ {
bounds->x = window_x - shadow->outer_border_left; 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->width = window_width + shadow->outer_border_left + shadow->outer_border_right;
bounds->height = window_height + shadow->outer_border_top + shadow->outer_border_bottom; bounds->height = window_height + shadow->outer_border_top + shadow->outer_border_bottom;
} }