diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsfns.m | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index ba363629686..c8a41f5b4b0 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1476,13 +1476,8 @@ ns_window_is_ancestor (NSWindow *win, NSWindow *candidate) | |||
| 1476 | DEFUN ("ns-frame-list-z-order", Fns_frame_list_z_order, | 1476 | DEFUN ("ns-frame-list-z-order", Fns_frame_list_z_order, |
| 1477 | Sns_frame_list_z_order, 0, 1, 0, | 1477 | Sns_frame_list_z_order, 0, 1, 0, |
| 1478 | doc: /* Return list of Emacs' frames, in Z (stacking) order. | 1478 | doc: /* Return list of Emacs' frames, in Z (stacking) order. |
| 1479 | The optional argument TERMINAL specifies which display to ask about. | 1479 | If TERMINAL is non-nil and specifies a live frame, return the child |
| 1480 | TERMINAL should be either a frame or a display name (a string). If | 1480 | frames of that frame in Z (stacking) order. |
| 1481 | omitted or nil, that stands for the selected frame's display. Return | ||
| 1482 | nil if TERMINAL contains no Emacs frame. | ||
| 1483 | |||
| 1484 | As a special case, if TERMINAL is non-nil and specifies a live frame, | ||
| 1485 | return the child frames of that frame in Z (stacking) order. | ||
| 1486 | 1481 | ||
| 1487 | Frames are listed from topmost (first) to bottommost (last). */) | 1482 | Frames are listed from topmost (first) to bottommost (last). */) |
| 1488 | (Lisp_Object terminal) | 1483 | (Lisp_Object terminal) |
| @@ -1492,8 +1487,6 @@ Frames are listed from topmost (first) to bottommost (last). */) | |||
| 1492 | 1487 | ||
| 1493 | if (FRAMEP (terminal) && FRAME_LIVE_P (XFRAME (terminal))) | 1488 | if (FRAMEP (terminal) && FRAME_LIVE_P (XFRAME (terminal))) |
| 1494 | parent = [FRAME_NS_VIEW (XFRAME (terminal)) window]; | 1489 | parent = [FRAME_NS_VIEW (XFRAME (terminal)) window]; |
| 1495 | else if (!NILP (terminal)) | ||
| 1496 | return Qnil; | ||
| 1497 | 1490 | ||
| 1498 | for (NSWindow *win in [[NSApp orderedWindows] reverseObjectEnumerator]) | 1491 | for (NSWindow *win in [[NSApp orderedWindows] reverseObjectEnumerator]) |
| 1499 | { | 1492 | { |