Mercurial > emacs
diff src/xterm.c @ 11122:ce63fb361ae9
(XTmouse_position): New arg `insist'.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sun, 26 Mar 1995 21:12:11 +0000 |
| parents | 3a2547424010 |
| children | 95b70c82ec51 |
line wrap: on
line diff
--- a/src/xterm.c Sun Mar 26 08:46:09 1995 +0000 +++ b/src/xterm.c Sun Mar 26 21:12:11 1995 +0000 @@ -2199,8 +2199,9 @@ again. */ static void -XTmouse_position (fp, bar_window, part, x, y, time) +XTmouse_position (fp, insist, bar_window, part, x, y, time) FRAME_PTR *fp; + int insist; Lisp_Object *bar_window; enum scroll_bar_part *part; Lisp_Object *x, *y; @@ -2321,6 +2322,9 @@ } } + if (f1 == 0 && insist) + f1 = selected_frame; + if (f1) { int ignore1, ignore2; @@ -2329,7 +2333,8 @@ pixel_to_glyph_coords (f1, win_x, win_y, &ignore1, &ignore2, &last_mouse_glyph, - FRAME_X_DISPLAY_INFO (f1)->grabbed); + FRAME_X_DISPLAY_INFO (f1)->grabbed + || insist); *bar_window = Qnil; *part = 0;
