What is Nostr?
Thomas Adam /
npub1vyl…4af2
2024-10-07 19:19:15
in reply to nevent1q…zetj

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.
Author Public Key
npub1vylzcqlnl3su0uzunl764c0gnl0gqak49xha4zdyrpxsh7gr8q9qsv4af2