Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm an old-school dinosaur, and I'd like to understand how drag and drop works on the X window system under Linux. Is it build into the X protocol? Is it a function of the window manager? Do applications have to be aware of drag and drop? Is it both the applications and the window manager?

I'm looking for a general technical understanding. If I have specific questions about how to modify an app to support drag and drop, I'll ask them over on Stackoverflow.

share|improve this question
    
In Windows, the object the dragged thing is released on to gets an event when it happens, and grabs info from that event (typically path to dropped file) and acts on it. So WDM has to support this as far as to send the event, and the program needs to take it from there by handling the event. I assume it's similar in X –  jcrawfordor Aug 16 '11 at 8:04

1 Answer 1

up vote 1 down vote accepted

XDnD (also on wp) is the most widely used protocol, supported by GTK and Qt. It involves both applications and, to a certain extent, the window manager and the program switcher (e.g. GNOME Panel) if one is running.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.