Lines Matching +defs:new +defs:state
63 int state, int noascii));
130 eventPtr->xkey.state, 0);
166 int state = 0;
169 state |= ShiftMask;
171 return KeycodeToKeysym(keycode, state, 0);
189 * It may affect the internal state of the keyboard, such as
196 KeycodeToKeysym(keycode, state, noascii)
198 int state;
228 if (state & ShiftMask)
230 if (state & ControlMask)
232 if (state & Mod2Mask)
240 if (state & LockMask)
242 if (state & Mod3Mask)
244 if (state & Mod1Mask)
301 * We had previously not been setting the state bit for the Control key.
335 * state of one of the two to determine which was actually
392 int state = eventPtr->xkey.state;
402 sym = KeycodeToKeysym(eventPtr->xkey.keycode, state, 0);
409 if ((sym == NoSymbol) && ((state & ControlMask) || (state & Mod2Mask))) {
410 state &= ~(ControlMask | Mod2Mask);
411 sym = KeycodeToKeysym(eventPtr->xkey.keycode, state, 0);
413 if ((sym == NoSymbol) && (state & ShiftMask)) {
414 state &= ~ShiftMask;
415 sym = KeycodeToKeysym(eventPtr->xkey.keycode, state, 0);
530 KeyCode *new;
537 new = (KeyCode *) ckalloc((unsigned)
539 memcpy((VOID *) new, (VOID *) dispPtr->modKeyCodes,
542 dispPtr->modKeyCodes = new;
554 * information about the modifier state that should be used
556 * account the xkey.state, they will get back the original
592 eventPtr->xkey.state |= ShiftMask;
594 eventPtr->xkey.state |= ControlMask;
596 eventPtr->xkey.state |= Mod2Mask;
660 * Returns a new modifier map.
663 * Allocates a new modifier map data structure.