[metacity] compositor: simplify find_window_for_child_window



commit c9423d11fe9748012b779d1a6e54b4eecb3082a7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Mar 3 18:39:13 2017 +0200

    compositor: simplify find_window_for_child_window

 src/compositor/meta-compositor-xrender.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index b6cc98c..35b0787 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -751,15 +751,15 @@ find_window (MetaCompositorXRender *xrender,
 }
 
 static MetaCompWindow *
-find_window_for_child_window_in_display (MetaCompositorXRender *xrender,
-                                         MetaDisplay           *display,
-                                         Window                 xwindow)
+find_window_for_child_window (MetaCompositorXRender *xrender,
+                              Display               *xdisplay,
+                              Window                 xwindow)
 {
   Window ignored1, *ignored2;
   Window parent;
   guint ignored_children;
 
-  XQueryTree (meta_display_get_xdisplay (display), xwindow, &ignored1,
+  XQueryTree (xdisplay, xwindow, &ignored1,
               &parent, &ignored2, &ignored_children);
 
   if (parent != None)
@@ -2737,7 +2737,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_in_display (xrender, display, event->window);
+          cw = find_window_for_child_window (xrender, xdisplay, event->window);
         }
 
       if (!cw)


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