[metacity] compositor: remove MetaScreen parameter from shadow_picture
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: remove MetaScreen parameter from shadow_picture
- Date: Sat, 4 Mar 2017 16:49:30 +0000 (UTC)
commit 0932948b2791eddde1ed7882b481ff364f6c8638
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 4 16:24:38 2017 +0200
compositor: remove MetaScreen parameter from shadow_picture
src/compositor/meta-compositor-xrender.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 76886d0..d15eb0c 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -663,7 +663,6 @@ shadow_picture_clip (Display *xdisplay,
static Picture
shadow_picture (MetaCompositorXRender *xrender,
MetaDisplay *display,
- MetaScreen *screen,
MetaCompWindow *cw,
double opacity,
MetaFrameBorders borders,
@@ -676,7 +675,6 @@ shadow_picture (MetaCompositorXRender *xrender,
XImage *shadow_image;
Pixmap shadow_pixmap;
Picture shadow_picture;
- Window xroot = meta_screen_get_xroot (screen);
GC gc;
shadow_image = make_shadow (xrender, display, cw->shadow_type,
@@ -685,7 +683,7 @@ shadow_picture (MetaCompositorXRender *xrender,
if (!shadow_image)
return None;
- shadow_pixmap = XCreatePixmap (xdisplay, xroot,
+ shadow_pixmap = XCreatePixmap (xdisplay, DefaultRootWindow (xdisplay),
shadow_image->width, shadow_image->height, 8);
if (!shadow_pixmap)
{
@@ -1087,7 +1085,7 @@ win_extents (MetaCompositorXRender *xrender,
if (cw->opacity != (guint) OPAQUE)
opacity = opacity * ((double) cw->opacity) / ((double) OPAQUE);
- cw->shadow = shadow_picture (xrender, display, screen, cw, opacity, borders,
+ cw->shadow = shadow_picture (xrender, display, cw, opacity, borders,
cw->attrs.width - invisible_width + cw->attrs.border_width * 2,
cw->attrs.height - invisible_height + cw->attrs.border_width * 2,
&cw->shadow_width, &cw->shadow_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]