diff options
| author | Jim Blandy <jimb@redhat.com> | 1991-07-16 03:37:23 +0000 |
|---|---|---|
| committer | Jim Blandy <jimb@redhat.com> | 1991-07-16 03:37:23 +0000 |
| commit | 77afd1db9bc30f6277b738bbbed135deb4ddcaa0 (patch) | |
| tree | 5022f801a9c207801fd546225810a09443cc43b8 | |
| parent | e9de784c5a33e94c0794c53b7db0833d0a00845b (diff) | |
| download | emacs-77afd1db9bc30f6277b738bbbed135deb4ddcaa0.tar.gz | |
*** empty log message ***
| -rw-r--r-- | src/frame.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/frame.c b/src/frame.c index 8f07e71d893..ad029713953 100644 --- a/src/frame.c +++ b/src/frame.c @@ -317,9 +317,14 @@ next_screen (screen, mini_screen) for (tail = Vscreen_list; CONSP (tail); tail = XCONS (tail)->cdr) { if (passed) - if (!mini_screen - && EQ (XCONS (tail)->car, Vglobal_minibuffer_screen)) - continue; + if (!mini_screen) + { + SCREEN_PTR s = XSCREEN (XCONS (tail)->car); + + if (EQ (XCONS (tail)->car, Vglobal_minibuffer_screen) + && EQ (s->root_window, s->minibuffer_window)) + continue; + } else return XCONS (tail)->car; @@ -354,8 +359,8 @@ prev_screen (screen, mini_screen) DEFUN ("next-screen", Fnext_screen, Snext_screen, 0, 2, 0, "Return the next screen in the screen list after SCREEN.\n\ -If MINISCREEN is non-nil, include the global-minibuffer-screen if it\n\ -has its own screen.") +If MINISCREEN is non-nil, include screens whose only window is a minibuffer.\n\ +If MINISCREEN is nil or omitted, these screens are skipped.") (screen, miniscreen) Lisp_Object screen, miniscreen; { @@ -893,12 +898,11 @@ coordinates_in_window (w, x, y) { register int left = XINT (w->left); register int width = XINT (w->width); - register int screen_height = XINT ((XSCREEN (w->screen)->height)); register int window_height = XINT (w->height); register int top = XFASTINT (w->top); if (*x < left || *x >= left + width - || *y == screen_height || *y < top || *y > top + window_height - 1) + || *y < top || *y > top + window_height - 1) return 0; if (*y == top + window_height - 1 |
