aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-10 22:20:56 +0000
committerRichard M. Stallman1994-01-10 22:20:56 +0000
commit5e7b7c5bda1e59bda842ba8e2381b8b2ec57184a (patch)
tree45dd3cd9599d92ed12de64c982e4ce1ff6e9abed /src
parentaf1d6f09ce1b864c69bec7829a594f45e65ae8cb (diff)
downloademacs-5e7b7c5bda1e59bda842ba8e2381b8b2ec57184a.tar.gz
emacs-5e7b7c5bda1e59bda842ba8e2381b8b2ec57184a.zip
(Fdelete_frame): Call x_sync.
(Fdelete_frame): Do FRAME_SAMPLE_VISIBILITY before testing visibility of a frame.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index a400fa4eadf..654c9e5c3bd 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -617,7 +617,6 @@ If MINIFRAME is non-nil and not a window, include all frames.")
617 617
618 return prev_frame (frame, miniframe); 618 return prev_frame (frame, miniframe);
619} 619}
620
621 620
622DEFUN ("delete-frame", Fdelete_frame, Sdelete_frame, 0, 2, "", 621DEFUN ("delete-frame", Fdelete_frame, Sdelete_frame, 0, 2, "",
623 "Delete FRAME, permanently eliminating it from use.\n\ 622 "Delete FRAME, permanently eliminating it from use.\n\
@@ -657,6 +656,14 @@ but if the second optional argument FORCE is non-nil, you may do so.")
657 { 656 {
658 Lisp_Object this = XCONS (frames)->car; 657 Lisp_Object this = XCONS (frames)->car;
659 658
659#ifdef HAVE_X_WINDOWS
660 if (FRAME_X_P (XFRAME (this)))
661 {
662 x_sync (this);
663 FRAME_SAMPLE_VISIBILITY (XFRAME (this));
664 }
665#endif
666
660 if (FRAME_VISIBLE_P (XFRAME (this)) 667 if (FRAME_VISIBLE_P (XFRAME (this))
661 || FRAME_ICONIFIED_P (XFRAME (this)) 668 || FRAME_ICONIFIED_P (XFRAME (this))
662 /* Allow deleting the terminal frame when at least 669 /* Allow deleting the terminal frame when at least