[mutter/wip/carlosg/x11-xdnd-fix: 1/2] dnd: Use composite_overlay_window directly



commit 0e3c062406914c6a182b7b05009a6c6d2d56fb5b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 10 21:13:00 2019 +0200

    dnd: Use composite_overlay_window directly
    
    Saves us from using MetaCompositor API, at a point where it might not
    be initialized yet. Use the same window directly, since we already
    have it handy.
    
    Closes: https://gitlab.gnome.org/GNOME/mutter/issues/672

 src/compositor/meta-dnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/compositor/meta-dnd.c b/src/compositor/meta-dnd.c
index 2a7302cf8..a202a0fc3 100644
--- a/src/compositor/meta-dnd.c
+++ b/src/compositor/meta-dnd.c
@@ -118,7 +118,7 @@ meta_dnd_init_xdnd (MetaX11Display *x11_display)
   Window xwindow, overlay_xwindow;
   long xdnd_version = 5;
 
-  overlay_xwindow = meta_get_overlay_window (x11_display->display);
+  overlay_xwindow = x11_display->composite_overlay_window;
   xwindow = meta_backend_x11_get_xwindow (META_BACKEND_X11 (backend));
 
   XChangeProperty (xdisplay, xwindow,


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