diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-07-02 15:12:02 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-07-02 15:12:02 -0400 |
commit | 3e6e7e6acb90563486f51d13ee8d44d7f02f0974 (patch) | |
tree | 4c92276cf6dc1f407b0e614e1f60b541e0c58b0b | |
parent | 67a21bdf56765c15316077ab36a3a280828e606e (diff) |
Track libxkbcommon API changes
-rw-r--r-- | clients/window.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/clients/window.c b/clients/window.c index 8efa831..7049112 100644 --- a/clients/window.c +++ b/clients/window.c @@ -64,7 +64,7 @@ struct display { struct wl_list window_list; char *device_name; cairo_surface_t *active_frame, *inactive_frame, *shadow; - XkbcDescPtr xkb; + struct xkb_desc *xkb; }; struct window { @@ -802,17 +802,15 @@ display_render_frame(struct display *d) static void init_xkb(struct display *d) { - XkbRMLVOSet rmlvo; - char rules[] = "evdev", model[] = "pc105", layout[] = "us"; + struct xkb_rule_names names; - rmlvo.rules = rules; - rmlvo.model = model; - rmlvo.layout = layout; - rmlvo.variant = ""; - rmlvo.options = ""; + names.rules = "evdev"; + names.model = "pc105"; + names.layout = "us"; + names.variant = ""; + names.options = ""; - XkbcInitAtoms(NULL, NULL); - d->xkb = XkbcCompileKeymapFromRules(&rmlvo); + d->xkb = xkb_compile_keymap_from_rules(&names); if (!d->xkb) { fprintf(stderr, "Failed to compile keymap\n"); exit(1); |