[metacity] compositor: remove MetaScreen parameter from paint_dock_shadows



commit 8da9e754d2ab0398c1f2d4ae734fa4403b605193
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 4 18:39:49 2017 +0200

    compositor: remove MetaScreen parameter from paint_dock_shadows

 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 3119374..d38b0bd 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1386,12 +1386,10 @@ get_window_mask (MetaCompWindow *cw)
 
 static void
 paint_dock_shadows (MetaCompositorXRender *xrender,
-                    MetaScreen            *screen,
                     Picture                root_buffer,
                     XserverRegion          region)
 {
-  MetaDisplay *display = meta_screen_get_display (screen);
-  Display *xdisplay = meta_display_get_xdisplay (display);
+  Display *xdisplay = xrender->xdisplay;
   GSList *d;
 
   for (d = xrender->dock_windows; d; d = d->next)
@@ -1580,7 +1578,7 @@ paint_windows (MetaCompositorXRender *xrender,
   XFixesSetPictureClipRegion (xdisplay, root_buffer, 0, 0, paint_region);
   paint_root (xrender, screen, root_buffer);
 
-  paint_dock_shadows (xrender, screen, root_buffer,
+  paint_dock_shadows (xrender, root_buffer,
                       desktop_region == None ? paint_region : desktop_region);
 
   if (desktop_region != None)


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