dix: export subpixel precision in XI2 events for root/event coordinates.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2009-05-08 10:10:25 +10:00
parent bae070914f
commit 00bc043fa0
3 changed files with 9 additions and 5 deletions

View File

@@ -86,8 +86,10 @@ typedef struct
uint32_t button; /**< Button number */
uint32_t key; /**< Key code */
} detail;
uint32_t root_x; /**< Pos relative to root window in 16.16 fixed pt */
uint32_t root_y; /**< Pos relative to root window in 16.16 fixed pt */
uint16_t root_x; /**< Pos relative to root window in integral data */
float root_x_frac; /**< Pos relative to root window in frac part */
uint16_t root_y; /**< Pos relative to root window in integral part */
float root_y_frac; /**< Pos relative to root window in frac part */
uint8_t buttons[(MAX_BUTTONS + 7)/8]; /**< Button mask */
struct {
uint8_t mask[(MAX_VALUATORS + 7)/8]; /**< Valuator mask */