aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-23 10:44:10 +0000
committerRichard M. Stallman1993-11-23 10:44:10 +0000
commit990acea371eac5e66c2f0fd918d204ae367ba665 (patch)
tree7437aee3fbd526db85400c1050f031b2a675a230 /src
parent75bb67502d187cf3f54b31b1c46184c0f856ba8b (diff)
downloademacs-990acea371eac5e66c2f0fd918d204ae367ba665.tar.gz
emacs-990acea371eac5e66c2f0fd918d204ae367ba665.zip
(kbd_buffer_get_event): Handle delete_window_event's.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index e7e58365491..8895c54872c 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1939,6 +1939,19 @@ kbd_buffer_get_event ()
1939 abort (); 1939 abort ();
1940#endif 1940#endif
1941 } 1941 }
1942#ifdef HAVE_X11
1943 else if (event->kind == delete_window_event)
1944 {
1945 Lisp_Object value;
1946
1947 Fdelete_frame (event->frame_or_window, Qt);
1948 kbd_fetch_ptr = event + 1;
1949
1950 value = Fvisible_frame_list ();
1951 if (! CONSP (value))
1952 kill (getpid (), SIGHUP);
1953 }
1954#endif
1942 /* Just discard these, by returning nil. 1955 /* Just discard these, by returning nil.
1943 (They shouldn't be found in the buffer, 1956 (They shouldn't be found in the buffer,
1944 but on some machines it appears they do show up.) */ 1957 but on some machines it appears they do show up.) */