diff options
| author | Po Lu | 2022-03-09 16:28:33 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-09 16:28:33 +0800 |
| commit | 06d826d0cac4f82e9bf6ce2c1e38ddbc882a5220 (patch) | |
| tree | 0079250d76f3247c6d243a1e4365ebabc35fd464 /src | |
| parent | f599b58afebcbc5a0e5bde9358eca6bba51ab81a (diff) | |
| download | emacs-06d826d0cac4f82e9bf6ce2c1e38ddbc882a5220.tar.gz 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')
| -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, | |||
| 1503 | [frame_window cascadeTopLeftFromPoint: top_left]; | 1503 | [frame_window cascadeTopLeftFromPoint: top_left]; |
| 1504 | } | 1504 | } |
| 1505 | else | 1505 | else |
| 1506 | [main_window center]; | 1506 | [frame_window center]; |
| 1507 | } | 1507 | } |
| 1508 | 1508 | ||
| 1509 | /* Make sure windows on this frame appear in calls to next-window | 1509 | /* Make sure windows on this frame appear in calls to next-window |