mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
window-actor: Remove an unnecessary frame check
meta_frame_calc_borders will zero out the borders if we don't have a frame. https://bugzilla.gnome.org/show_bug.cgi?id=676052
This commit is contained in:
parent
b98e4e37ad
commit
9ca00d5cce
@ -2147,17 +2147,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);
|
||||
|
Loading…
Reference in New Issue
Block a user