macos: Use org.gtk.internal for GType-based DnD

Use a custom content type, so other apps are not tempted to
accept GTK internal content types.
This commit is contained in:
Arjan Molenaar
2024-10-28 11:33:52 +01:00
parent 5ca4fa6695
commit ec7e0777ec

View File

@@ -272,6 +272,7 @@ _gdk_macos_pasteboard_register_drag_types (NSWindow *window)
// TODO: how can GTK tell us what drag types expected?
// Now the app will accept everything.
[window registerForDraggedTypes:[NSArray arrayWithObjects:@"public.item",
@"org.gtk.internal",
nil]];
}