Mercurial > hg > xemacs-beta
comparison src/event-gtk.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 | ade0c13d91a3 |
children | bc4f2511bbea |
comparison
equal
deleted
inserted
replaced
3948:adecfd791c9b | 3949:33b9323388c5 |
---|---|
1861 XModifierKeymap *map = (XModifierKeymap *) xd->x_modifier_keymap; | 1861 XModifierKeymap *map = (XModifierKeymap *) xd->x_modifier_keymap; |
1862 | 1862 |
1863 xd->lock_interpretation = 0; | 1863 xd->lock_interpretation = 0; |
1864 | 1864 |
1865 if (map) | 1865 if (map) |
1866 XFreeModifiermap (map); | 1866 { |
1867 XFreeModifiermap (xd->x_modifier_keymap); | |
1868 /* Set it to NULL in case we receive two MappingModifier events in a | |
1869 row, and the second is processed during some CHECK_QUITs within | |
1870 x_reset_key_mapping. If that happens, XFreeModifierMap will be | |
1871 called twice on the same map, and we crash. */ | |
1872 xd->x_modifier_keymap = NULL; | |
1873 } | |
1867 | 1874 |
1868 gtk_reset_key_mapping (d); | 1875 gtk_reset_key_mapping (d); |
1869 | 1876 |
1870 xd->x_modifier_keymap = map = XGetModifierMapping (display); | 1877 xd->x_modifier_keymap = map = XGetModifierMapping (display); |
1871 | 1878 |