The genealogy -- as it were -- of this patch started with
https://gramps-project.org/bugs/view.php?id=5357 which was a
feature request for the clipboard to remember its location
on the screen, its placement, its position.
The p.r. https://github.com/gramps-project/gramps/pull/58
was a prototype implementation, but it also had the main
window remembering its location. Then p.r. 58 turned into
https://github.com/gramps-project/gramps/pull/60/ -- but
later both of those were closed, never committed.
Since I really wanted the main window to be able to remember
its position, I have extracted the relevant code. I also
modified it along the way, e.g. renaming some variables.
So all the credit should go to Sam Manzi, the originator of
those two pull requests, and thus the code in this commit.
However, any problems are due to me, my changes -- not Sam.