Is TS_Raw defined with the correct values?
Submitted by Kevin Day
Assigned to Xorg Project Team
TS_Raw and similar were removed from xinputproto at some point. This later caused a problem. This problem was fixed by having the TS_Raw and similar put back into the xorg server.
Namely: xorg-server 1.5.1/hw/xfree86/common/xf86Xinput.h Lines: 88->90 code:
/* Stupid API backwards-compatibility. */ #define TS_Raw 60 #define TS_Scaled 61
Are the values 60 & 61 correct? Please defend/explain why they are 60 and 61. Because when I look at: inputproto-1.3.2/XI.h Lines: 207->212 where the TS_Raw values were originally defined as:
/* Merged from Metrolink tree for XINPUT stuff / #define TS_Raw 57 #define TS_Scaled 58 #define SendCoreEvents 59 #define DontSendCoreEvents 60 / End of merged section */
Here they are defined as 57 and 58.
I cannot see the new values as correct, especially when looking at the bottom of xorg-server-1.5.2's xf86Xinput.h on lines 211->213, the following exists:
/* Legacy hatred */ #define SendCoreEvents 59 #define DontSendCoreEvents 60
Notice that here, TS-Raw is defined as the same number as DontSendCoreEvents Looking at the old XI.h, DontSendCoreEvents and TS_Raw are grouped together AND are different numbers.
This problem effects xorg-server 1.4. As far as xorg-server 1.3, the TS_Raw is missing entirely and that was when the TS_Raw is missing problem was noticed. See bug: 10262
Version: 7.4 (2008.09)