Current problem with xzibit
Oct. 21st, 2010 05:31 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)

I am implementing what I call "doppelganger cursors". These are mouse pointers which appear on a shared window as the mouse pointer moves across the other window. They have the icon of the person on the other end appended. Here's a video of what they currently look like.
Currently, these are implemented by creating a new, extra pointer using XInput2, and then doing a pointer grab on that one pointer in order to change it into the new image. This is good as far as it goes, but if your client has a pointer grab then MotionNotify events aren't reported for any other pointer, which means that we can't detect movement on that window: so it's impossible to get doppelgangers working in each direction.
Possible workarounds:
- Find a way to do a grab and still get MotionNotify events.
- Don't do a grab. Set the pointer per-window instead.
- Don't use an extra pointer. Use an undecorated window and float it about in the right place.
no subject
Date: 2010-10-23 12:28 am (UTC)ajjzIvOjnFf
Date: 2011-09-29 04:45 am (UTC)