diff options
author | Chris Humbert <freedesktop@mahadri.com> | 2010-05-07 17:02:43 +1000 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2010-05-15 19:29:19 +0200 |
commit | c247f81ca188407ac2ddd31adcae00074b2cda0b (patch) | |
tree | cc43207eb35ad8e613c222da74f82e3231dc2666 | |
parent | e9a2eb86e9dd1f0d3d955bb7c16f2660c773e070 (diff) |
dix: make DeviceEvent coordinates signed for Xinerama. #24986
With Xinerama enabled, event coordinates are relative to Screen 0, so
they can be negative. The new DeviceEvent's coordinates are of type
uint16_t, making screens above and to the left of Screen 0 unusable.
X.Org Bug 24986 <https://bugs.freedesktop.org/show_bug.cgi?id=24986>
Signed-off-by: Chris Humbert <freedesktop@mahadri.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 21ed660f30a3f96c787ab00a16499e0fb034b2ad)
-rw-r--r-- | include/eventstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/eventstr.h b/include/eventstr.h index 79685c1a6..433227e6e 100644 --- a/include/eventstr.h +++ b/include/eventstr.h @@ -91,9 +91,9 @@ struct _DeviceEvent uint32_t button; /**< Button number */ uint32_t key; /**< Key code */ } detail; - uint16_t root_x; /**< Pos relative to root window in integral data */ + int16_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 */ + int16_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 { |