You are not logged in.
I don't want to move to [testing], so I'm looking for someone to test one little program on X server 1.9, because it looks like a bug in X server.
The problem is: I'm using RawMotion events from XInput2, and XWarpPointer generates some unwanted RawMotion message on execution.
So, here is the minimal test case: [link]
Compile as:
gcc warptest.c -o warptest -lX11 -lXi
Run, and try to move mouse. Once per 10 events there is a XWarpPointer call. And it generates unwanted RawMotion message.
device: 2 (0) raw_valuator 1: -2.000000 // This is OK (a normal mouse motion).
device: 2 (0) raw_valuator 0: 1.000000 raw_valuator 1: -1.000000 // This is fine too.
device: 2 (0) raw_valuator 0: 101.000000 raw_valuator 1: 168.000000 // And this one is evil (very large motion, to the center of the window in screen coordinates).
Tell me if you can reproduce this.
Last edited by Mad Fish (2010-09-07 18:10:49)
Offline
Same thing happens in 1.9.
device: 2 (0) raw_valuator 1: 1.000000
device: 2 (0) raw_valuator 1: 3.000000
device: 2 (0) raw_valuator 0: -1.000000 raw_valuator 1: 2.000000
device: 2 (0) raw_valuator 1: 3.000000
device: 2 (0) raw_valuator 1: 1.000000
device: 2 (0) raw_valuator 0: 1963.000000 raw_valuator 1: 122.000000
Looks like a nifty program. What exactly are you trying to do?
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
I am developing a game, I need raw input and I don't want mouse to escape the window. That's why I need XWarpPointer. (the other approach is to us XGrabPointer, but it breaks Alt+Tab, which is unacceptable).
Is there a better way?
Offline
No, that's the way Wine does (did?) it as well I believe. Take that with a heavy dose of salt, I haven't actually looked at the code involved, just read discussion.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
One last question. Does that bad event contain coordinates of mouse move target (in screen coordinates)? That will help me to find that in X.org sources.
It seems that I'm doomed to dig into X server and contact developers... Because I don't want to make ugly hacks!
P.S. X11 is such a beast. Even worse than WinAPI.
Last edited by Mad Fish (2010-09-07 14:52:31)
Offline
Yes, the coordinates correspond tot he center of the created window
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Thanks for your responses!
Offline