You are not logged in.

#1 2010-09-06 20:42:48

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

[SOLVED] Can someone running X server 1.9 from [testing] check this?

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

#2 2010-09-06 23:41:53

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [SOLVED] Can someone running X server 1.9 from [testing] check this?

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

#3 2010-09-07 11:56:26

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Can someone running X server 1.9 from [testing] check this?

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

#4 2010-09-07 12:41:45

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [SOLVED] Can someone running X server 1.9 from [testing] check this?

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

#5 2010-09-07 14:52:04

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Can someone running X server 1.9 from [testing] check this?

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

#6 2010-09-07 16:47:36

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [SOLVED] Can someone running X server 1.9 from [testing] check this?

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

#7 2010-09-07 18:10:11

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Can someone running X server 1.9 from [testing] check this?

Thanks for your responses!

Offline

Board footer

Powered by FluxBB