Got a bit annoyed with the cursor placement code I’d done earlier so I did a little refinement so it should now keep the window fully on screen. It still places at the cursor, it just might not have the cursor centered in the title bar.

I like this setup a bit better as it keeps my windows from ending up half on one monitor and half on the other, which is a bit annoying.