summaryrefslogtreecommitdiff
path: root/include/events.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-08 10:10:25 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-08 14:33:50 +1000
commit00bc043fa0398a1d14d46b87da2ff3031a9535dc (patch)
tree8d70096cc5a01aad34de7cd307096bec16e462b5 /include/events.h
parentbae070914fc27db122e6131ae4838559c4a72f65 (diff)
dix: export subpixel precision in XI2 events for root/event coordinates.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/events.h')
-rw-r--r--include/events.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/events.h b/include/events.h
index da8f58aaf..6803b5b7b 100644
--- a/include/events.h
+++ b/include/events.h
@@ -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 */