[metacity] compositor: remove xdisplay parameter from find_window_for_child_window



commit ce62e7544d21c7de6927ca03b8ad1088b1831eec
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 4 18:24:23 2017 +0200

    compositor: remove xdisplay parameter from find_window_for_child_window

 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 4024383..afe74a6 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -734,14 +734,13 @@ find_window (MetaCompositorXRender *xrender,
 
 static MetaCompWindow *
 find_window_for_child_window (MetaCompositorXRender *xrender,
-                              Display               *xdisplay,
                               Window                 xwindow)
 {
   Window ignored1, *ignored2;
   Window parent;
   guint ignored_children;
 
-  XQueryTree (xdisplay, xwindow, &ignored1,
+  XQueryTree (xrender->xdisplay, xwindow, &ignored1,
               &parent, &ignored2, &ignored_children);
 
   if (parent != None)
@@ -2626,7 +2625,7 @@ process_property_notify (MetaCompositorXRender *xrender,
           /* Applications can set this for their toplevel windows, so
            * this must be propagated to the window managed by the compositor
            */
-          cw = find_window_for_child_window (xrender, xdisplay, event->window);
+          cw = find_window_for_child_window (xrender, event->window);
         }
 
       if (!cw)


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