I don't understand how the origin of the number for 'x' and 'y' can matter if the window will go back to the other head or not. These variables after all don't remember where they came from, they are just ints.
These ints are expressed in the virtual coordinate space, not in the coordinate space of one particular head. For example, if you have two 1024x768 screens side by side, the coordinates on the left screen are in the rectangle (0,0)-(1023,767) and in the rectangle (1024,0)-(2047,767) on the right screen. At least that's what I understood by looking at the code, but once again I just gave it a quick look and I don't have an external screen to test.
So in fact I separated your patch into 3. Take a look into 'next' and complain if I did it wrong :-)
That's ok. Thanks! Nicolas -- To unsubscribe, send mail to [email protected].
