aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorKarl Heuer1995-06-01 23:37:20 +0000
committerKarl Heuer1995-06-01 23:37:20 +0000
commit49fe12a91d4f38f476da592cbbd06e487fc60797 (patch)
treec9b1136e152f84dba7d732fa0659c7616f4ef46d /src/widget.c
parented662bdd5dd454f49b82fbfe371c3e7b4867a8ff (diff)
downloademacs-49fe12a91d4f38f476da592cbbd06e487fc60797.tar.gz
emacs-49fe12a91d4f38f476da592cbbd06e487fc60797.zip
(EmacsFrameDestroy): Block and unblock input.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widget.c b/src/widget.c
index 101ca4f61f5..32daf8ffc27 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -27,7 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
27#include "frame.h" 27#include "frame.h"
28 28
29#include "dispextern.h" 29#include "dispextern.h"
30 30#include "blockinput.h"
31 31
32#include <X11/StringDefs.h> 32#include <X11/StringDefs.h>
33#include <X11/IntrinsicP.h> 33#include <X11/IntrinsicP.h>
@@ -744,10 +744,12 @@ EmacsFrameDestroy (widget)
744 been freed. */ 744 been freed. */
745 free_frame_faces (s); 745 free_frame_faces (s);
746 746
747 BLOCK_INPUT;
747 /* need to be careful that the face-freeing code doesn't free these too */ 748 /* need to be careful that the face-freeing code doesn't free these too */
748 XFreeGC (XtDisplay (widget), s->display.x->normal_gc); 749 XFreeGC (XtDisplay (widget), s->display.x->normal_gc);
749 XFreeGC (XtDisplay (widget), s->display.x->reverse_gc); 750 XFreeGC (XtDisplay (widget), s->display.x->reverse_gc);
750 XFreeGC (XtDisplay (widget), s->display.x->cursor_gc); 751 XFreeGC (XtDisplay (widget), s->display.x->cursor_gc);
752 UNBLOCK_INPUT;
751} 753}
752 754
753void 755void