diff options
| author | Yuuki Harano | 2019-07-26 01:47:48 +0900 |
|---|---|---|
| committer | Jeff Walsh | 2020-11-22 14:46:55 +1100 |
| commit | fde74fa8b9ac3886ca8370e3aaea562fa8408ced (patch) | |
| tree | 0727d5bdf24f074873c55872f91495c1e577f323 /src | |
| parent | b3a20d7a21795f4e2847938ace6dd454f6b4e870 (diff) | |
| download | emacs-fde74fa8b9ac3886ca8370e3aaea562fa8408ced.tar.gz emacs-fde74fa8b9ac3886ca8370e3aaea562fa8408ced.zip | |
implement pgtk-frame-list-z-order same as frame-list.
* src/pgtkfns.c (Fpgtk_frame_list_z_order): return frame list as it's
the same
Diffstat (limited to 'src')
| -rw-r--r-- | src/pgtkfns.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index a8f81761b3d..52fc65694ba 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c | |||
| @@ -1487,30 +1487,12 @@ DEFUN ("pgtk-frame-list-z-order", Fpgtk_frame_list_z_order, | |||
| 1487 | If TERMINAL is non-nil and specifies a live frame, return the child | 1487 | If TERMINAL is non-nil and specifies a live frame, return the child |
| 1488 | frames of that frame in Z (stacking) order. | 1488 | frames of that frame in Z (stacking) order. |
| 1489 | 1489 | ||
| 1490 | Frames are listed from topmost (first) to bottommost (last). */) | 1490 | Frames are listed from topmost (first) to bottommost (last). |
| 1491 | |||
| 1492 | On PGTK, this function is identical to frame-list. */) | ||
| 1491 | (Lisp_Object terminal) | 1493 | (Lisp_Object terminal) |
| 1492 | { | 1494 | { |
| 1493 | Lisp_Object frames = Qnil; | 1495 | return Fframe_list(); |
| 1494 | #if 0 | ||
| 1495 | PGTKWindow *parent = nil; | ||
| 1496 | |||
| 1497 | if (FRAMEP (terminal) && FRAME_LIVE_P (XFRAME (terminal))) | ||
| 1498 | parent = [FRAME_PGTK_VIEW (XFRAME (terminal)) window]; | ||
| 1499 | |||
| 1500 | for (PGTKWindow *win in [[NSApp orderedWindows] reverseObjectEnumerator]) | ||
| 1501 | { | ||
| 1502 | Lisp_Object frame; | ||
| 1503 | |||
| 1504 | /* Check against [win parentWindow] so that it doesn't match itself. */ | ||
| 1505 | if (parent == nil || pgtk_window_is_ancestor (parent, [win parentWindow])) | ||
| 1506 | { | ||
| 1507 | XSETFRAME (frame, ((EmacsView *)[win delegate])->emacsframe); | ||
| 1508 | frames = Fcons(frame, frames); | ||
| 1509 | } | ||
| 1510 | } | ||
| 1511 | #endif | ||
| 1512 | |||
| 1513 | return frames; | ||
| 1514 | } | 1496 | } |
| 1515 | 1497 | ||
| 1516 | DEFUN ("pgtk-frame-restack", Fpgtk_frame_restack, Spgtk_frame_restack, 2, 3, 0, | 1498 | DEFUN ("pgtk-frame-restack", Fpgtk_frame_restack, Spgtk_frame_restack, 2, 3, 0, |