diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-11-04 11:29:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-09 14:56:23 +1000 |
commit | 86bb3781b336c09e4279136ed81974de5acdba7f (patch) | |
tree | 56f325228d63a7a77507df0bc524bcf9c4fe095b /Xi/xiselectev.c | |
parent | b8b90cd1610331ff12fa3f70bf372670af7795ec (diff) |
input: swap the server over to use the XI2mask struct
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'Xi/xiselectev.c')
-rw-r--r-- | Xi/xiselectev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c index 3af4f1fb9..ee14edb6d 100644 --- a/Xi/xiselectev.c +++ b/Xi/xiselectev.c @@ -33,6 +33,7 @@ #include "exglobals.h" #include "exevents.h" #include <X11/extensions/XI2proto.h> +#include "inpututils.h" #include "xiselectev.h" @@ -249,7 +250,7 @@ ProcXIGetSelectedEvents(ClientPtr client) for (i = 0; i < MAXDEVICES; i++) { int j; - unsigned char *devmask = others->xi2mask[i]; + const unsigned char *devmask = xi2mask_get_one_mask(others->xi2mask, i); if (i > 2) { @@ -259,7 +260,7 @@ ProcXIGetSelectedEvents(ClientPtr client) } - for (j = XI2MASKSIZE - 1; j >= 0; j--) + for (j = xi2mask_mask_size(others->xi2mask) - 1; j >= 0; j--) { if (devmask[j] != 0) { |