aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorMartin Rudalics2017-04-30 10:02:53 +0200
committerMartin Rudalics2017-04-30 10:02:53 +0200
commit0943cc18b18e2df90c7aa0fbc4dab72d418aa700 (patch)
tree5cc55eb8a9da33426e488b3f8a413185d60ec187 /src/w32term.c
parent7e4dae99d619315179a90461b42ae8d734c5bb45 (diff)
downloademacs-0943cc18b18e2df90c7aa0fbc4dab72d418aa700.tar.gz
emacs-0943cc18b18e2df90c7aa0fbc4dab72d418aa700.zip
Fix `delete-frame' behavior including Bug#26682
* src/frame.c (other_frames): Accept two arguments now. Don't care about minibuffer window. Don't care about visibility when called from delete_frame with FORCE true (Bug#26682). (delete_frame, Fmake_frame_invisible): Adjust other_frames calls. * src/w32term.c (w32_read_socket): Don't add a move frame event for an invisible frame. * lisp/frame.el (handle-delete-frame): Don't kill Emacs when attempting to delete a surrogate minibuffer frame.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 6b0da0cb3e9..b3608accb34 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -5110,7 +5110,7 @@ w32_read_socket (struct terminal *terminal,
5110 case WM_MOVE: 5110 case WM_MOVE:
5111 f = x_window_to_frame (dpyinfo, msg.msg.hwnd); 5111 f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
5112 5112
5113 if (f && !FRAME_ICONIFIED_P (f)) 5113 if (f && FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P(f))
5114 { 5114 {
5115 x_real_positions (f, &f->left_pos, &f->top_pos); 5115 x_real_positions (f, &f->left_pos, &f->top_pos);
5116 inev.kind = MOVE_FRAME_EVENT; 5116 inev.kind = MOVE_FRAME_EVENT;