Modify spec to add allowed operations to drop events

This commit is contained in:
Kovid Goyal
2026-05-14 09:09:05 +05:30
parent 96b07602f0
commit 0c6c387312

View File

@@ -60,11 +60,13 @@ to inform the terminal that it no longer wants drops.
Whenever the user drags something over the window, the terminal will send an
escape code of the form::
OSC _dnd_code ; t=m:x=x:y=y:X=X:Y=Y ; optional MIME list ST
OSC _dnd_code ; t=m:x=x:y=y:X=X:Y=Y:o=O ; optional MIME list ST
Here, ``x, y`` identify the cell over which the drag is currently present.
The ``(0, 0)`` cell is at top left of the screen. ``X and Y`` are the pixel
offsets from the top-left. The optional list of MIMES is a space separated
offsets from the top-left. The ``O`` value is the set of allowed operations,
which can be ``1`` for copy, ``2`` for move and ``3`` for either, at the
client's discretion. The optional list of MIMES is a space separated
list of MIME types that are available for dropping. To avoid overhead, the
terminal should only send this list for the first move event and subsequently
only if the list changes.