Thomas Adam on Nostr: zirias (on snac) Yes, I think so. The key thing here, as you've noted is to calculate ...
zirias (on snac) (npub18je…uypq) 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.
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.