summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-05 11:54:55 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-05 11:54:55 +0100
commita52811567ebcd8c9ad96aded3c7581b9cfd78caa (patch)
treeb4d9b90c003bc43b76b56fe90d0cdb544678e8c9 /documentation
parent5ae92f034ac8688bda0d905964eb281f764bf351 (diff)
Wayland: improve DnD of filenames to allow space-containing names
Diffstat (limited to 'documentation')
-rw-r--r--documentation/src/events.dox2
-rw-r--r--documentation/src/wayland.dox5
2 files changed, 4 insertions, 3 deletions
diff --git a/documentation/src/events.dox b/documentation/src/events.dox
index 7657ce933..26a3cda83 100644
--- a/documentation/src/events.dox
+++ b/documentation/src/events.dox
@@ -271,7 +271,7 @@ application on the desktop to an FLTK widget. Text is transferred
using UTF-8 encoding. Files are received as a list of full path
and file names, separated by newline.
-On some X11 platforms, files are received as a URL-encoded UTF-8 string,
+On some X11 platforms and with Wayland, files are received as a URL-encoded UTF-8 string,
that is, non-ASCII bytes (and a few others such as space and %) are
replaced by the 3 bytes "%XY" where XY are the byte's hexadecimal value.
The \ref fl_decode_uri() function can be used to transform in-place
diff --git a/documentation/src/wayland.dox b/documentation/src/wayland.dox
index 9ab7583f6..3dfa4d733 100644
--- a/documentation/src/wayland.dox
+++ b/documentation/src/wayland.dox
@@ -761,9 +761,10 @@ operations:
FLTK can copy or paste plain UTF-8 text or image data to/from the clipboard. Images are copied to the
clipboard as \c image/bmp mime type. Images in \c image/bmp or \c image/png mime types from the
-clipboard can be pasted to FLTK apps. Files dropped are received as a string with ' ' between
-successive filenames.
+clipboard can be pasted to FLTK apps.
+Files dropped are received one per line with URL-encoded UTF-8 names prepended by
+<tt>file://</tt> (see \ref events_dnd).
\section wayland-egl EGL as support for OpenGL