mirror of
https://github.com/brl/mutter.git
synced 2025-04-04 09:23:46 +00:00
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>
This commit is contained in:
parent
dae981cc5c
commit
ab06232dbe
@ -120,12 +120,12 @@ meta_dnd_init_xdnd (MetaX11Display *x11_display)
|
|||||||
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,
|
||||||
XInternAtom (xdisplay, "XdndAware", TRUE), XA_ATOM,
|
XInternAtom (xdisplay, "XdndAware", False), XA_ATOM,
|
||||||
32, PropModeReplace,
|
32, PropModeReplace,
|
||||||
(const unsigned char *) &xdnd_version, 1);
|
(const unsigned char *) &xdnd_version, 1);
|
||||||
|
|
||||||
XChangeProperty (xdisplay, overlay_xwindow,
|
XChangeProperty (xdisplay, overlay_xwindow,
|
||||||
XInternAtom (xdisplay, "XdndProxy", TRUE), XA_WINDOW,
|
XInternAtom (xdisplay, "XdndProxy", False), XA_WINDOW,
|
||||||
32, PropModeReplace, (const unsigned char *) &xwindow, 1);
|
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
|
* XdndProxy property on the target window isn't a left-over
|
||||||
*/
|
*/
|
||||||
XChangeProperty (xdisplay, xwindow,
|
XChangeProperty (xdisplay, xwindow,
|
||||||
XInternAtom (xdisplay, "XdndProxy", TRUE), XA_WINDOW,
|
XInternAtom (xdisplay, "XdndProxy", False), XA_WINDOW,
|
||||||
32, PropModeReplace, (const unsigned char *) &xwindow, 1);
|
32, PropModeReplace, (const unsigned char *) &xwindow, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user