From 68d39d8571d8717d26cedc84015d537549520a14 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 16 Feb 2007 23:02:13 +0200 Subject: [PATCH] kdrive/ephyr: fix keysym type confusion once and for all Take keysyms in as an XID in hostx_load_keymap() and explicitly convert them to CARD32 for loading into the server. Fixes Xephyr on AMD64, wa-hey. --- hw/kdrive/ephyr/hostx.c | 6 +++--- hw/kdrive/ephyr/hostx.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 573f77489..36d3cbd46 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -656,7 +656,7 @@ hostx_paint_debug_rect(int x, int y, void hostx_load_keymap(void) { - KeySym *keymap; + XID *keymap; int host_width, min_keycode, max_keycode, width; int i,j; @@ -677,7 +677,7 @@ hostx_load_keymap(void) */ width = (host_width > 4) ? 4 : host_width; - ephyrKeySyms.map = (KeySym *)calloc(sizeof(KeySym), + ephyrKeySyms.map = (CARD32 *)calloc(sizeof(CARD32), (max_keycode - min_keycode + 1) * width); if (!ephyrKeySyms.map) @@ -685,7 +685,7 @@ hostx_load_keymap(void) for (i=0; i<(max_keycode - min_keycode+1); i++) for (j=0; j