From 3de35c62b4f81714836280dc005aeca9db5f1a38 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 20 Feb 2024 16:13:17 +1100 Subject: [PATCH] Fix dropping text & URL's from google-chrome in X11 Chrome would only drop into windows supporting v5 of the XDND spec, resolve by bumping the version and no other changes. From looking into the changes between v3 & v5 they mainly relate to dragging files between windows & dragging onto the root window. Since Blender does neither, bump the version to allow dragging links from google-chrome. --- extern/xdnd/xdnd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extern/xdnd/xdnd.h b/extern/xdnd/xdnd.h index c903b51c8d0..a9979b706df 100644 --- a/extern/xdnd/xdnd.h +++ b/extern/xdnd/xdnd.h @@ -26,7 +26,11 @@ extern "C" { /* you can set this to either 2 (which support 0 and 1 as well) or 3 */ /* #define XDND_VERSION 2 */ -#define XDND_VERSION 3 + +/* NOTE(@ideasman42): Use version 5 otherwise the chrome browser can't drop URL or text data. + * Ideally all aspects of the updated specification would also be supported although none seem + * essential for use in Blender, see: https://www.freedesktop.org/wiki/Specifications/XDND/ */ +#define XDND_VERSION 5 /* XdndEnter */