Popey: Re-reading the second-part of this bug-report, there's possibly some room for improvement.
* If the window is grabbed N pixels outside of the window border, then allow overshooting the screen edge by the same N pixels outside of the screen borders.
This would still allow exact aligning with the screen edge in all cases. I'm happy to re-focus this bug around solving that specific issue if you'd be happy with that.
Popey: Re-reading the second-part of this bug-report, there's possibly some room for improvement.
* If the window is grabbed N pixels outside of the window border, then allow overshooting the screen edge by the same N pixels outside of the screen borders.
This would still allow exact aligning with the screen edge in all cases. I'm happy to re-focus this bug around solving that specific issue if you'd be happy with that.