Comment 32 for bug 799202

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

The cause of (some part) of this bug is somewhere else. I removed all code from patch 503 and left only the part that adds new fields to structs. Effectively it looks like this:

--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -335,6 +335,8 @@ typedef struct _TouchPointInfo {
     unsigned int history_size; /* Size of history ring buffer */
     InternalEvent *first_history; /* Pointer to first event in history */
     InternalEvent *next_history; /* Pointer to next available event */
+ int untransformed_x;
+ int untransformed_y;
 } TouchPointInfoRec;

 typedef struct _TouchAxisInfo {
@@ -623,6 +625,8 @@ typedef struct _DeviceIntRec {
         float remainder[MAX_VALUATORS];
         int numValuators;
         DeviceIntPtr slave;
+ int untransformed_x;
+ int untransformed_y;
     } last;

Simply applying this patch breaks pressure. Since this gets installed to /usr/include/xorg/inputstr.h, that means that someone (Qt probably) is using these structs incorrectly (creating them by themselves, building arrays or something else).