summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-09-15 18:06:17 +0200
committerMarge Bot <marge-bot@gnome.org>2022-12-01 20:10:52 +0000
commitab06232dbe29034eb1ac21c6592b6bb60275c16b (patch)
treebee1ec6d36cf6c381decf77d04723d09272e3cd1
parentdae981cc5c63b05225b4e1dcc2d544adb917ccfb (diff)
downloadmutter-ab06232dbe29034eb1ac21c6592b6bb60275c16b.tar.gz
compositor: Ensure atom existence initializing DnD
These only exist because GTK creates them ahead of us, stop relying on that. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2175>
-rw-r--r--src/compositor/meta-dnd.c6
1 files 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);
}