Lines Matching refs:old
39 XkbNoteMapChanges(XkbMapChangesPtr old,
48 if (old->changed & XkbKeyTypesMask) {
49 first = old->first_type;
50 oldLast = old->first_type + old->num_types - 1;
57 old->first_type = first;
58 old->num_types = newLast - first + 1;
61 old->first_type = new->first_type;
62 old->num_types = new->num_types;
66 if (old->changed & XkbKeySymsMask) {
67 first = old->first_key_sym;
68 oldLast = old->first_key_sym + old->num_key_syms - 1;
75 old->first_key_sym = first;
76 old->num_key_syms = newLast - first + 1;
79 old->first_key_sym = new->first_key_sym;
80 old->num_key_syms = new->num_key_syms;
84 if (old->changed & XkbKeyActionsMask) {
85 first = old->first_key_act;
86 oldLast = old->first_key_act + old->num_key_acts - 1;
93 old->first_key_act = first;
94 old->num_key_acts = newLast - first + 1;
97 old->first_key_act = new->first_key_act;
98 old->num_key_acts = new->num_key_acts;
102 if (old->changed & XkbKeyBehaviorsMask) {
103 first = old->first_key_behavior;
104 oldLast = old->first_key_behavior + old->num_key_behaviors - 1;
111 old->first_key_behavior = first;
112 old->num_key_behaviors = newLast - first + 1;
115 old->first_key_behavior = new->first_key_behavior;
116 old->num_key_behaviors = new->num_key_behaviors;
120 old->vmods |= new->vmods;
123 if (old->changed & XkbExplicitComponentsMask) {
124 first = old->first_key_explicit;
125 oldLast = old->first_key_explicit + old->num_key_explicit - 1;
132 old->first_key_explicit = first;
133 old->num_key_explicit = newLast - first + 1;
136 old->first_key_explicit = new->first_key_explicit;
137 old->num_key_explicit = new->num_key_explicit;
141 if (old->changed & XkbModifierMapMask) {
142 first = old->first_modmap_key;
143 oldLast = old->first_modmap_key + old->num_modmap_keys - 1;
150 old->first_modmap_key = first;
151 old->num_modmap_keys = newLast - first + 1;
154 old->first_modmap_key = new->first_modmap_key;
155 old->num_modmap_keys = new->num_modmap_keys;
159 if (old->changed & XkbVirtualModMapMask) {
160 first = old->first_vmodmap_key;
161 oldLast = old->first_vmodmap_key + old->num_vmodmap_keys - 1;
168 old->first_vmodmap_key = first;
169 old->num_vmodmap_keys = newLast - first + 1;
172 old->first_vmodmap_key = new->first_vmodmap_key;
173 old->num_vmodmap_keys = new->num_vmodmap_keys;
176 old->changed |= wanted;
181 _XkbNoteCoreMapChanges(XkbMapChangesPtr old,
188 if (old->changed & XkbKeySymsMask) {
189 first = old->first_key_sym;
190 oldLast = old->first_key_sym + old->num_key_syms - 1;
197 old->first_key_sym = first;
198 old->num_key_syms = newLast - first + 1;
201 old->changed |= XkbKeySymsMask;
202 old->first_key_sym = new->first_keycode;
203 old->num_key_syms = new->count;