[metacity] compositor: simplify paint_root
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: simplify paint_root
- Date: Sat, 4 Mar 2017 16:50:41 +0000 (UTC)
commit c7f8f96b208fe57dd0198258bf3422fb0b21a055
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 4 18:35:26 2017 +0200
compositor: simplify paint_root
src/compositor/meta-compositor-xrender.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 74fd5d1..94a9966 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -941,8 +941,6 @@ paint_root (MetaCompositorXRender *xrender,
MetaScreen *screen,
Picture root_buffer)
{
- MetaDisplay *display = meta_screen_get_display (screen);
- Display *xdisplay = meta_display_get_xdisplay (display);
int width, height;
g_return_if_fail (root_buffer != None);
@@ -954,7 +952,8 @@ paint_root (MetaCompositorXRender *xrender,
}
meta_screen_get_size (screen, &width, &height);
- XRenderComposite (xdisplay, PictOpSrc, xrender->root_tile, None, root_buffer,
+ XRenderComposite (xrender->xdisplay, PictOpSrc,
+ xrender->root_tile, None, root_buffer,
0, 0, 0, 0, 0, 0, width, height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]