What I try to do is a listener that moves a shell by holding down the middle mouse button. I want this because I use the style DWT.NONE on the shell. I manged to do this in java and swt but the same code doesn't work as expected in d with dwt.

I can describe the problem with an example:
If you have the mouse pointer 100 pixels to the right of the top left corner of a window and moves the window you expect that the mouse pointer always is 100 pixels to the right of the top left corner but now it isn't. The top left corner of the window moves to the mouse pointer all the time.