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
This commit is contained in:
Carlos Garnacho 2019-07-10 21:13:00 +02:00
parent 4bc7425332
commit 0e3c062406

View File

@ -118,7 +118,7 @@ meta_dnd_init_xdnd (MetaX11Display *x11_display)
Window xwindow, overlay_xwindow; Window xwindow, overlay_xwindow;
long xdnd_version = 5; 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)); xwindow = meta_backend_x11_get_xwindow (META_BACKEND_X11 (backend));
XChangeProperty (xdisplay, xwindow, XChangeProperty (xdisplay, xwindow,