[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 06d826d0ca: Fix error when creating frames on NS with no main win
From: |
Po Lu |
Subject: |
master 06d826d0ca: Fix error when creating frames on NS with no main window |
Date: |
Wed, 9 Mar 2022 03:29:24 -0500 (EST) |
branch: master
commit 06d826d0cac4f82e9bf6ce2c1e38ddbc882a5220
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
src/nsfns.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nsfns.m b/src/nsfns.m
index 6256bd220d..720ed3f88e 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 06d826d0ca: Fix error when creating frames on NS with no main window,
Po Lu <=