Reviewed-by: Mikhail Gusarov <[email protected]>
Signed-off-by: Julien Cristau <[email protected]>
---
 hw/kdrive/ephyr/hostx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c
index 08ddafc..f0ca6f0 100644
--- a/hw/kdrive/ephyr/hostx.c
+++ b/hw/kdrive/ephyr/hostx.c
@@ -927,7 +927,8 @@ hostx_load_keymap(void)
   xcb_get_keyboard_mapping_cookie_t cookie;
   xcb_get_keyboard_mapping_reply_t *reply;
 
-  XDisplayKeycodes (HostX.dpy, &min_keycode, &max_keycode);
+  min_keycode = xcb_get_setup(HostX.conn)->min_keycode;
+  max_keycode = xcb_get_setup(HostX.conn)->max_keycode;
 
   EPHYR_DBG ("min: %d, max: %d", min_keycode, max_keycode);
 
-- 
1.7.1

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to