ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.C
(Generate patch)

Comparing rxvt-unicode/src/keyboard.C (file contents):
Revision 1.30 by ayin, Thu Jan 10 11:30:45 2008 UTC vs.
Revision 1.31 by root, Fri Sep 4 15:40:12 2009 UTC

143// return: priority_of_a - priority_of_b 143// return: priority_of_a - priority_of_b
144static int 144static int
145compare_priority (keysym_t *a, keysym_t *b) 145compare_priority (keysym_t *a, keysym_t *b)
146{ 146{
147 // (the more '1's in state; the less range): the greater priority 147 // (the more '1's in state; the less range): the greater priority
148 int ca = popcount (a->state /* & OtherModMask */); 148 int ca = rxvt_popcount (a->state /* & OtherModMask */);
149 int cb = popcount (b->state /* & OtherModMask */); 149 int cb = rxvt_popcount (b->state /* & OtherModMask */);
150 150
151 if (ca != cb) 151 if (ca != cb)
152 return ca - cb; 152 return ca - cb;
153//else if (a->state != b->state) // this behavior is to be disscussed 153//else if (a->state != b->state) // this behavior is to be disscussed
154// return b->state - a->state; 154// return b->state - a->state;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines