From 0e3c062406914c6a182b7b05009a6c6d2d56fb5b Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 10 Jul 2019 21:13:00 +0200 Subject: [PATCH] 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,