[metacity] surface: update regions before is_region_empty
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] surface: update regions before is_region_empty
- Date: Thu, 17 Oct 2019 23:34:37 +0000 (UTC)
commit cdef273ad16cf1ecea2bf7e1f07d3f3e79a575d3
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Oct 18 02:33:40 2019 +0300
surface: update regions before is_region_empty
src/compositor/meta-surface.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-surface.c b/src/compositor/meta-surface.c
index d4036749..6c163542 100644
--- a/src/compositor/meta-surface.c
+++ b/src/compositor/meta-surface.c
@@ -714,15 +714,15 @@ meta_surface_pre_paint (MetaSurface *self)
META_SURFACE_GET_CLASS (self)->pre_paint (self);
+ update_shape_region (self, damage);
+ update_opaque_region (self, damage);
+
if (is_region_empty (priv->xdisplay, damage))
{
XFixesDestroyRegion (priv->xdisplay, damage);
return;
}
- update_shape_region (self, damage);
- update_opaque_region (self, damage);
-
XFixesTranslateRegion (priv->xdisplay, damage, priv->x, priv->y);
meta_compositor_add_damage (priv->compositor, "meta_surface_pre_paint", damage);
XFixesDestroyRegion (priv->xdisplay, damage);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]