diff options
| author | Richard M. Stallman | 1995-03-06 04:35:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-03-06 04:35:33 +0000 |
| commit | f48f33caa6e2e9458a404b382f10663622ae9e66 (patch) | |
| tree | d6c16943348481e963889836ef6321dfb17105d5 /src | |
| parent | 829782956edf73de16096650fdf02d7c96e0f500 (diff) | |
| download | emacs-f48f33caa6e2e9458a404b382f10663622ae9e66.tar.gz emacs-f48f33caa6e2e9458a404b382f10663622ae9e66.zip | |
(x_connection_closed): Ignore non-X frames.
Fix the logic for deleting frames that use separate minibuffers
that are on the dead connection.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index bc919788d06..a7b5940f651 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4374,8 +4374,10 @@ x_connection_closed (display, error_message) | |||
| 4374 | Lisp_Object minibuf_frame; | 4374 | Lisp_Object minibuf_frame; |
| 4375 | minibuf_frame | 4375 | minibuf_frame |
| 4376 | = WINDOW_FRAME (XWINDOW (FRAME_MINIBUF_WINDOW (XFRAME (frame)))); | 4376 | = WINDOW_FRAME (XWINDOW (FRAME_MINIBUF_WINDOW (XFRAME (frame)))); |
| 4377 | if (! EQ (frame, minibuf_frame) | 4377 | if (FRAME_X_P (XFRAME (frame)) |
| 4378 | && FRAME_X_DISPLAY_INFO (XFRAME (frame)) == dpyinfo) | 4378 | && FRAME_X_P (XFRAME (minibuf_frame)) |
| 4379 | && ! EQ (frame, minibuf_frame) | ||
| 4380 | && FRAME_X_DISPLAY_INFO (XFRAME (minibuf_frame)) == dpyinfo) | ||
| 4379 | Fdelete_frame (frame, Qt); | 4381 | Fdelete_frame (frame, Qt); |
| 4380 | } | 4382 | } |
| 4381 | 4383 | ||
| @@ -4383,7 +4385,8 @@ x_connection_closed (display, error_message) | |||
| 4383 | We are now sure none of these is used as the minibuffer | 4385 | We are now sure none of these is used as the minibuffer |
| 4384 | for another frame that we need to delete. */ | 4386 | for another frame that we need to delete. */ |
| 4385 | FOR_EACH_FRAME (tail, frame) | 4387 | FOR_EACH_FRAME (tail, frame) |
| 4386 | if (FRAME_X_DISPLAY_INFO (XFRAME (frame)) == dpyinfo) | 4388 | if (FRAME_X_P (XFRAME (frame)) |
| 4389 | && FRAME_X_DISPLAY_INFO (XFRAME (frame)) == dpyinfo) | ||
| 4387 | Fdelete_frame (frame, Qt); | 4390 | Fdelete_frame (frame, Qt); |
| 4388 | 4391 | ||
| 4389 | x_delete_display (dpyinfo); | 4392 | x_delete_display (dpyinfo); |