Here's a couple of patches which makes miPointerRec private to the miPointer code; the only user of that struct was Xwayland which used it to invalidate the current sprite. An API is provided to perform that invalidation, and then the struct definition is removed from the API.