window-actor: Remove an unnecessary frame check

meta_frame_calc_borders will zero out the borders if we don't have a frame.
This commit is contained in:
Jasper St. Pierre 2012-04-26 23:28:28 -04:00
parent a7cbc9ad9a
commit e43f8db6e8

View File

@ -2030,17 +2030,8 @@ check_needs_reshape (MetaWindowActor *self)
client_area.width = priv->window->rect.width;
client_area.height = priv->window->rect.height;
if (priv->window->frame)
{
client_area.x = borders.total.left;
client_area.y = borders.total.top;
}
else
{
client_area.x = 0;
client_area.y = 0;
}
client_area.x = borders.total.left;
client_area.y = borders.total.top;
/* Punch out client area. */
cairo_region_subtract_rectangle (region, &client_area);