How to handle X11 Drag 'n Drop events
Briefly

To handle Drag 'n Drop events with X11, you must use the XDnD protocol, which is more complicated than other APIs but simpler in theory.
The interaction begins with the source window sending an XdndEnter message via ClientMessage events, signaling that a drag has started.
The target window must confirm receipt of updates during the drag; failure to do so will terminate the interaction, emphasizing the importance of communication.
Once a drop occurs, data is converted and handled through a series of messages, culminating in the communication of completion with a ClientMessage.
Read at CodeProject
[
]
[
|
]