diff options
author | Po Lu <luangruo@yahoo.com> | 2022-03-09 16:28:33 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-03-09 16:28:33 +0800 |
commit | 06d826d0cac4f82e9bf6ce2c1e38ddbc882a5220 (patch) | |
tree | 0079250d76f3247c6d243a1e4365ebabc35fd464 /src/nsfns.m | |
parent | f599b58afebcbc5a0e5bde9358eca6bba51ab81a (diff) | |
download | emacs-06d826d0cac4f82e9bf6ce2c1e38ddbc882a5220.tar.gz emacs-06d826d0cac4f82e9bf6ce2c1e38ddbc882a5220.tar.bz2 emacs-06d826d0cac4f82e9bf6ce2c1e38ddbc882a5220.zip |
Fix error when creating frames on NS with no main window
* nsfns.m (Fx_create_frame): If main window is not present,
center frame window instead of cascading it.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r-- | src/nsfns.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index 6256bd220dd..720ed3f88e5 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -1503,7 +1503,7 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, [frame_window cascadeTopLeftFromPoint: top_left]; } else - [main_window center]; + [frame_window center]; } /* Make sure windows on this frame appear in calls to next-window |