summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compositor/meta-compositor-xrender.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index ab7c04bf..180a15a1 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);