mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
4a10c95e76
commit
be8df20675
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user