summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2011-04-01 22:49:09 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2011-06-07 13:28:12 +1000
commit8abdde71b83ff37b8500282e4856c323be508f67 (patch)
treed9f6ae81be3c80666c478a6fa4f13b861b50d179 /src
parent32236a7779f721d252d633d06ade306f246421a3 (diff)
Fix XISelectEvents on 64 bits, strict alignement architectures.
Use Data() to send the struct xXIEventMask on the wire instead of Data32() which expects a pointer to a 64bits value on LP64 architectures. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 18177afd4fb3934d0a9083c599fb96701eec2ad9)
Diffstat (limited to 'src')
-rw-r--r--src/XISelEv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XISelEv.c b/src/XISelEv.c
index a9c997a..3192b6b 100644
--- a/src/XISelEv.c
+++ b/src/XISelEv.c
@@ -83,7 +83,7 @@ XISelectEvents(Display* dpy, Window win, XIEventMask* masks, int num_masks)
* and they need to be padded with 0 */
buff = calloc(1, mask.mask_len * 4);
memcpy(buff, current->mask, current->mask_len);
- Data32(dpy, &mask, sizeof(xXIEventMask));
+ Data(dpy, (char*)&mask, sizeof(xXIEventMask));
Data(dpy, buff, mask.mask_len * 4);
free(buff);
}