Keith Packard <[email protected]> writes: > Egbert Eich <[email protected]> writes: > >> ConfineToShape does not work well: The cursor often times doesn't jump >> to the point closest to the current cursor position outside the shape. >> This patch fixes this. > > I came up with something a bit simpler which confines the point to each > box in the region and then picks the result which moves the cursor the > shortest distance. I think it would generate the same result, but I > stuck a bunch of range tests in the distance computation to avoid > overflow in weird cases. Dunno if you like this better or not?
I didn't see any replies to this comment; would be nice to merge this at some point. -- [email protected]
pgpCeai5kWYf2.pgp
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
