Lines Matching defs:opk
446 struct op_keycode *opk;
471 opk = &uop->keycode;
473 opk->type = doKeycode;
474 opk->target_keycode = keycodes[count];
475 opk->count = n;
476 opk->keysyms = kslist;
1166 static int exec_keycode ( struct op_keycode *opk );
1251 exec_keycode(struct op_keycode *opk)
1253 if (!opk->target_keycode) {
1256 if (!opk->count)
1260 for (j = 0; j < opk->count; j++) {
1261 if (XKeycodeToKeysym(dpy, (KeyCode) i, j) != opk->keysyms[j])
1264 if (j >= opk->count)
1280 XChangeKeyboardMapping (dpy, free, opk->count, opk->keysyms, 1);
1281 } else if (opk->count == 0) {
1283 XChangeKeyboardMapping (dpy, opk->target_keycode, 1,
1286 XChangeKeyboardMapping (dpy, opk->target_keycode, opk->count,
1287 opk->keysyms, 1);