Style ThomasAdam StartsOnDesk 0, StartsOnPage 0 0, SkipMapping
I maintain/contribute to various projects such as: got, fvwm, tmux, x11cp
User/Contributor/Developer of {Free,Net,Open}BSD as well as Linux.
Avid cryptic crossword solver, especially the Guardian cryptics.
@zirias Yes, I think so. The key thing here, as you’ve noted is to calculate the offset of the page based on the screen.
In your commit, you’ve used:
while (x < 0) …
while (y < 0) …
It’s probably unnecessary to do that, but it won’t hurt in practice.
See, for example, the implementation in FindScreenOfXY(): https://github.com/fvwmorg/fvwm3/blob/main/libs/FScreen.c#L801
Which is essentially doing the same thing.
Everything else outside of this check is just noise.