Mercurial > hg > xemacs-beta
comparison src/event-Xt.c @ 3949:33b9323388c5
[xemacs-hg @ 2007-05-12 10:59:15 by aidan]
Zero out device modifier map after freeing it, X11, GTK.
author | aidan |
---|---|
date | Sat, 12 May 2007 10:59:17 +0000 |
parents | 4cad7ff4a200 |
children | 930bb9cba65a |
comparison
equal
deleted
inserted
replaced
3948:adecfd791c9b | 3949:33b9323388c5 |
---|---|
321 int mode_bit = 0; | 321 int mode_bit = 0; |
322 | 322 |
323 xd->lock_interpretation = 0; | 323 xd->lock_interpretation = 0; |
324 | 324 |
325 if (xd->x_modifier_keymap) | 325 if (xd->x_modifier_keymap) |
326 XFreeModifiermap (xd->x_modifier_keymap); | 326 { |
327 XFreeModifiermap (xd->x_modifier_keymap); | |
328 /* Set it to NULL in case we receive two MappingModifier events in a | |
329 row, and the second is processed during some CHECK_QUITs within | |
330 x_reset_key_mapping. If that happens, XFreeModifierMap will be | |
331 called twice on the same map, and we crash. */ | |
332 xd->x_modifier_keymap = NULL; | |
333 } | |
327 | 334 |
328 x_reset_key_mapping (d); | 335 x_reset_key_mapping (d); |
329 | 336 |
330 xd->x_modifier_keymap = XGetModifierMapping (display); | 337 xd->x_modifier_keymap = XGetModifierMapping (display); |
331 | 338 |