mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
Check NSWindow is actually a frame
* src/nsfns.m (Fns_frame_list_z_order): Check NSWindow is an instance of EmacsView before treating it as one.
This commit is contained in:
parent
1d732d699d
commit
7dc028e250
@ -1497,7 +1497,8 @@ Frames are listed from topmost (first) to bottommost (last). */)
|
||||
Lisp_Object frame;
|
||||
|
||||
/* Check against [win parentWindow] so that it doesn't match itself. */
|
||||
if (parent == nil || ns_window_is_ancestor (parent, [win parentWindow]))
|
||||
if ([[win delegate] isKindOfClass:[EmacsView class]]
|
||||
&& (parent == nil || ns_window_is_ancestor (parent, [win parentWindow])))
|
||||
{
|
||||
XSETFRAME (frame, ((EmacsView *)[win delegate])->emacsframe);
|
||||
frames = Fcons(frame, frames);
|
||||
|
Loading…
Reference in New Issue
Block a user