[mutter/gnome-3-34] wayland: Preserve XdndTypeList for future callers



commit d38c30c12853c7c64112f3cf41f601120b3de47f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 13 13:10:53 2020 +0100

    wayland: Preserve XdndTypeList for future callers
    
    This Xdnd property is owned by the drag source, we shouldn't delete
    it when reading/proxying it to Wayland clients.
    
    Closes: https://gitlab.gnome.org/GNOME/gtk/issues/2347
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1005
    
    (cherry picked from commit c1df48befd254684f0c2969b0656af03d0de024a)

 src/wayland/meta-xwayland-dnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-xwayland-dnd.c b/src/wayland/meta-xwayland-dnd.c
index 3ad58e4d2..31c97da19 100644
--- a/src/wayland/meta-xwayland-dnd.c
+++ b/src/wayland/meta-xwayland-dnd.c
@@ -562,7 +562,7 @@ meta_xwayland_data_source_fetch_mimetype_list (MetaWaylandDataSource *source,
   XGetWindowProperty (xdisplay, window, prop,
                       0, /* offset */
                       0x1fffffff, /* length */
-                      True, /* delete */
+                      False, /* delete */
                       AnyPropertyType,
                       &type_ret,
                       &format_ret,


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