Use uptr for cast as Xorg expects int to be the size of pointers.