[metacity] xrender: simplify expose_area



commit 0cfad4b31bf46d8000d10e01d9269ad42b84bc79
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 18 13:10:17 2017 +0200

    xrender: simplify expose_area

 src/compositor/meta-compositor-xrender.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index ab7c04b..180a15a 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -2231,12 +2231,9 @@ expose_area (MetaCompositorXRender *xrender,
              XRectangle            *rects,
              int                    nrects)
 {
-  MetaCompositor *compositor = META_COMPOSITOR (xrender);
-  MetaDisplay *display = meta_compositor_get_display (compositor);
-  Display *xdisplay = meta_display_get_xdisplay (display);
   XserverRegion region;
 
-  region = XFixesCreateRegion (xdisplay, rects, nrects);
+  region = XFixesCreateRegion (xrender->xdisplay, rects, nrects);
 
   dump_xserver_region (xrender, "expose_area", region);
   add_damage (xrender, region);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]