~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to xkb/XKBMisc.c

Tags: 2:1.10.1-2
* Build xserver-xorg-core-udeb on hurd-i386.  Thanks, Samuel Thibault!
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
454
454
            }
455
455
            if (((explicit&XkbExplicitAutoRepeatMask)==0)&&(xkb->ctrls)) {
456
456
                CARD8 old;
457
 
                old= xkb->ctrls->per_key_repeat[key/8];
 
457
                old= BitIsOn(xkb->ctrls->per_key_repeat, key);
458
458
                if (interps[0]->flags&XkbSI_AutoRepeat)
459
 
                     xkb->ctrls->per_key_repeat[key/8]|= (1<<(key%8));
460
 
                else xkb->ctrls->per_key_repeat[key/8]&= ~(1<<(key%8));
461
 
                if (changes && (old!=xkb->ctrls->per_key_repeat[key/8]))
 
459
                    SetBit(xkb->ctrls->per_key_repeat, key);
 
460
                else
 
461
                    ClearBit(xkb->ctrls->per_key_repeat, key);
 
462
                if (changes && old != BitIsOn(xkb->ctrls->per_key_repeat, key))
462
463
                    changes->ctrls.changed_ctrls|= XkbPerKeyRepeatMask;
463
464
            }
464
465
        }
466
467
    if ((!found)||(interps[0]==NULL)) {
467
468
        if (((explicit&XkbExplicitAutoRepeatMask)==0)&&(xkb->ctrls)) {
468
469
            CARD8 old;
469
 
            old= xkb->ctrls->per_key_repeat[key/8];
470
 
            xkb->ctrls->per_key_repeat[key/8]|= (1<<(key%8));
471
 
            if (changes && (old!=xkb->ctrls->per_key_repeat[key/8]))
 
470
            old = BitIsOn(xkb->ctrls->per_key_repeat, key);
 
471
            SetBit(xkb->ctrls->per_key_repeat, key);
 
472
            if (changes && (old != BitIsOn(xkb->ctrls->per_key_repeat, key)))
472
473
                changes->ctrls.changed_ctrls|= XkbPerKeyRepeatMask;
473
474
        }
474
475
        if (((explicit&XkbExplicitBehaviorMask)==0)&&