xbmc/xbmc — pull request #589 by CrystalP (2011-12-27 22:38:11+00:00)
Title: Add event when moving windows, and fix D3D device creation

This PR adds the plumbing for an event raised when the XBMC window is moved.
I'm looking for feedback on the way I added this.
I'm not sure if there is a binary compatibility to maintain on the event numbers, was it OK to add XBMC_VIDEOMOVE in the middle?

@davilla, you mentioned OSX already does something with the window position, if I can make this PR more generic so that OSX can piggyback, let me know.

The PR also contains an implementation for Windows. In a multiscreen configuration the Direct3D device must be created/recreated for the screen overlapped most by the window. This is not taken care of in the non-fullscreen windowed mode and can lead to the dwm disabling itself.