<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi Michael,</DIV>
<DIV> </DIV>
<DIV>Thanks for the pointer, will take a look.</DIV>
<DIV> </DIV>
<DIV>Do you think Clipboard host service would be the right place to hold the dnd code on host? </DIV>
<DIV> </DIV>
<DIV>Inside guest, VBoxTray is the right place, I think.</DIV>
<DIV> </DIV>
<DIV>The good news is that we pretty much made host-to-vm drop to work well between windows host and windows guest.</DIV>
<DIV> </DIV>
<DIV>Overall, vbox will have dnd feature in the not-too-long future. Once winodws work, we will look at X11, vbox team can take over from there, too.</DIV>
<DIV> </DIV>
<DIV>vm-to-host seems to be even more difficult, as we are looking into the issue right now.</DIV>
<DIV> </DIV>
<DIV>- huihong</DIV>
<DIV><BR>--- On <B>Fri, 7/23/10, Michael Thayer <I><michael.thayer@oracle.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Michael Thayer <michael.thayer@oracle.com><BR>Subject: Re: [vbox-dev] drag-n-drop is being implemented too<BR>To: "Huihong Luo" <huisinro@yahoo.com><BR>Cc: vbox-dev@virtualbox.org, "Alexey Eremenko" <al4321@gmail.com><BR>Date: Friday, July 23, 2010, 3:07 AM<BR><BR>
<DIV class=plainMail>Hello Huihong,<BR><BR>Le mercredi 21 juillet 2010 à 16:20 -0700, Huihong Luo a écrit :<BR>> Guest side is much more difficult, it requires deep understanding of<BR>> the low level dnd impl mechanism, as how to initiate a dnd operation<BR>> programmatically, etc. so each guest needs a different impl. We are<BR>> doing Windows.  Personally, I don't like Linux's windowing system,<BR>> there are so fragmented.<BR>>  <BR>> but overall, it should be portable<BR>If you are interested in keeping the protocol you design sufficiently<BR>portable for someone else to implement the X11 guest version, here is<BR>the link to protocol implemented by Qt:<BR><BR><A href="http://www.newplanetsoftware.com/xdnd/" target=_blank>http://www.newplanetsoftware.com/xdnd/</A><BR><BR>I think that what you would need to know can be summarised as follows:<BR><BR>* X11 top-level windows can publicly announce (in the form of a
 window<BR>property that other clients can query) that they accept drops.<BR>* X11 drag and drop operations are under the control of the client that<BR>owns the window from which something is being dragged (the X server is<BR>not aware of DnD at all, it just provides the primitive operations used<BR>to communicate between the two windows).<BR>* The client controlling the drag operation queries drop windows,<BR>providing them with information about what is to be dropped and asking<BR>them if they will accept it.<BR><BR>If your protocol supports this mode of operation in the guest it<BR>shouldn't be too hard for someone to add X11 support.<BR><BR>Regards,<BR><BR>Michael<BR>-- <BR>ORACLE Deutschland B.V. & Co. KG   Michael Thayer<BR>Werkstrasse 24                     VirtualBox engineer<BR>71384 Weinstadt, Germany           mailto:<A
 href="http://us.mc343.mail.yahoo.com/mc/compose?to=michael.thayer@sun.com" ymailto="mailto:michael.thayer@sun.com">michael.thayer@sun.com</A><BR><BR>Hauptverwaltung: Riesstr. 25, D-80992 München<BR>Registergericht: Amtsgericht München, HRA 95603<BR><BR>Komplementärin: ORACLE Deutschland Verwaltung B.V.<BR>Rijnzathe 6, 3454PV De Meern, Niederlande<BR>Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<BR>Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven <BR><BR><BR></DIV></BLOCKQUOTE></td></tr></table>