[PATCH 03/19] Xephyr: no need for XDisplayKeycodes
Julien Cristau
jcristau at debian.org
Wed Oct 20 10:11:45 PDT 2010
Reviewed-by: Mikhail Gusarov <dottedmag at dottedmag.net>
Signed-off-by: Julien Cristau <jcristau at debian.org>
---
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
More information about the xorg-devel
mailing list