[mutter] window-actor: Kill off another use of MetaFrameBorders
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window-actor: Kill off another use of MetaFrameBorders
- Date: Thu, 27 Feb 2014 00:47:42 +0000 (UTC)
commit 29edefdfc5ca7ef9bb913af5df0b8150bc938ca4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Feb 26 19:38:11 2014 -0500
window-actor: Kill off another use of MetaFrameBorders
src/compositor/meta-window-actor.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 7e628e1..7ab4de4 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -2057,9 +2057,9 @@ meta_window_actor_update_opaque_region (MetaWindowActor *self)
if (priv->argb32 && priv->window->opaque_region != NULL)
{
- MetaFrameBorders borders;
+ cairo_rectangle_int_t client_area;
- meta_frame_calc_borders (priv->window->frame, &borders);
+ meta_window_get_client_area_rect (priv->window, &client_area);
/* The opaque region is defined to be a part of the
* window which ARGB32 will always paint with opaque
@@ -2072,7 +2072,7 @@ meta_window_actor_update_opaque_region (MetaWindowActor *self)
* case, graphical glitches will occur.
*/
opaque_region = cairo_region_copy (priv->window->opaque_region);
- cairo_region_translate (opaque_region, borders.total.left, borders.total.top);
+ cairo_region_translate (opaque_region, client_area.x, client_area.y);
cairo_region_intersect (opaque_region, priv->shape_region);
}
else if (priv->argb32)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]