Dragging a fullscreen window to another screen and then disabling fullscreen keeps the window at the new screen.
Review Request #102103 - Created July 27, 2011 and submitted
I think the screen number solution is not ideal, though it works. What do you think?
Tested with two screens with the 4.7 branch and the master branch.
There's a xinerama setting which controls the fullscreen mode (can span across both screens) which should likely be taken into account here. Also have a look at the ::checkWorkspacePosition(QRect &r) which is in general used to ensure the clients rect is on screen (there's another RRq regarding this and multiscreen behaviour)
Review request changed
Uses checkWorkspacePosition and also takes xineramaFullscreenEnabled into consideration. @Thomas the patch you linked is not in branch 4.7 but just master, so I tested the patch you linked only with master. Yet I want to backport this review here also to 4.7, but as far as I can tell it works nice with both master and 4.7.
Revision 2 (+22 -3)