mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-21 20:28:06 +00:00
Drag and drop protocol: deny requests for drag data made before the user has actually dropped something onto the window
This commit is contained in:
parent
9475a58f0b
commit
026d11f517
4 changed files with 108 additions and 0 deletions
|
|
@ -251,6 +251,8 @@ Detailed list of changes
|
|||
|
||||
- IME preedit text: use underline rather than reverse video (:pull:`10386`)
|
||||
|
||||
- Drag and drop protocol: deny requests for drag data made before the user has actually dropped something onto the window
|
||||
|
||||
|
||||
0.48.2 [2026-07-30]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -104,6 +104,15 @@ mandatory, terminals must send the full list of MIME types available in
|
|||
the drop. The client program can now request data for the MIME types
|
||||
it is interested in.
|
||||
|
||||
Data may only be requested after a drop has actually occurred, receiving
|
||||
movement events is not sufficient. Terminals must reject any data request
|
||||
received before the drop event with an ``EPERM`` error. Since no drop is in
|
||||
progress, this particular error does not terminate anything. Additionally,
|
||||
when a drag leaves the window without a drop having occurred, terminals must
|
||||
discard all data and resources associated with the drag session, such as
|
||||
previously fetched URI lists, in-progress file transfers and directory
|
||||
handles. Requests referring to them must fail.
|
||||
|
||||
Requesting data is done by sending an escape code of the form::
|
||||
|
||||
OSC _dnd_code ; t=r:x=idx ST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue