From 86bb3781b336c09e4279136ed81974de5acdba7f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 4 Nov 2011 11:29:01 +1000 Subject: input: swap the server over to use the XI2mask struct Signed-off-by: Peter Hutterer Reviewed-by: Chase Douglas --- Xi/xiselectev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Xi/xiselectev.c') 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 +#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) { -- cgit v1.2.3