[mutter/wip/carlosg/x11-xdnd-fix: 1/2] compositor: Use composite_overlay_window directly
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/x11-xdnd-fix: 1/2] compositor: Use composite_overlay_window directly
- Date: Wed, 10 Jul 2019 19:20:30 +0000 (UTC)
commit de254fdb23045278a2190e9009aeda783bd61280
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jul 10 21:13:00 2019 +0200
compositor: 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]