From ab06232dbe29034eb1ac21c6592b6bb60275c16b Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 15 Sep 2022 18:06:17 +0200 Subject: [PATCH] compositor: Ensure atom existence initializing DnD These only exist because GTK creates them ahead of us, stop relying on that. Part-of: --- src/compositor/meta-dnd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compositor/meta-dnd.c b/src/compositor/meta-dnd.c index 4053ccaea..ffe695643 100644 --- a/src/compositor/meta-dnd.c +++ b/src/compositor/meta-dnd.c @@ -120,12 +120,12 @@ meta_dnd_init_xdnd (MetaX11Display *x11_display) xwindow = meta_backend_x11_get_xwindow (META_BACKEND_X11 (backend)); XChangeProperty (xdisplay, xwindow, - XInternAtom (xdisplay, "XdndAware", TRUE), XA_ATOM, + XInternAtom (xdisplay, "XdndAware", False), XA_ATOM, 32, PropModeReplace, (const unsigned char *) &xdnd_version, 1); XChangeProperty (xdisplay, overlay_xwindow, - XInternAtom (xdisplay, "XdndProxy", TRUE), XA_WINDOW, + XInternAtom (xdisplay, "XdndProxy", False), XA_WINDOW, 32, PropModeReplace, (const unsigned char *) &xwindow, 1); /* @@ -133,7 +133,7 @@ meta_dnd_init_xdnd (MetaX11Display *x11_display) * XdndProxy property on the target window isn't a left-over */ XChangeProperty (xdisplay, xwindow, - XInternAtom (xdisplay, "XdndProxy", TRUE), XA_WINDOW, + XInternAtom (xdisplay, "XdndProxy", False), XA_WINDOW, 32, PropModeReplace, (const unsigned char *) &xwindow, 1); }