[mutter/wip/carlosg/frames-client: 14/32] compositor: Ensure atom existence initializing DnD




commit 9a2130cf835e62ce38ced9d6e7c99345197e68ca
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Sep 15 18:06:17 2022 +0200

    compositor: Ensure atom existence initializing DnD
    
    These only exist because GTK creates them ahead of us, stop relying
    on that.

 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 4053ccaeaf..ffe695643d 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);
 }
 


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