[mutter/wip/carlosg/selection-bugfixes: 30/33] wayland: Preserve XdndTypeList for future callers



commit e6355bdabc1c56568cf4733d2eb21049ccd1156b
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

 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 c01402317..fc88a6375 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]