Mercurial > hg > xemacs-beta
diff src/scrollbar-msw.c @ 819:6504113e7c2d
[xemacs-hg @ 2002-04-25 18:03:23 by andyp]
sync up windows branch from 21.4
author | andyp |
---|---|
date | Thu, 25 Apr 2002 18:04:24 +0000 |
parents | a634e3b7acc8 |
children | 6728e641994e |
line wrap: on
line diff
--- a/src/scrollbar-msw.c Thu Apr 25 06:09:18 2002 +0000 +++ b/src/scrollbar-msw.c Thu Apr 25 18:04:24 2002 +0000 @@ -352,19 +352,22 @@ frame. */ if (ScreenToClient (FRAME_MSWINDOWS_HANDLE (XFRAME (frame)), &donde_esta) != 0) - /* stderr_out ("donde_esta: %d %d\n", donde_esta.x, donde_esta.y); */ - pixel_to_glyph_translation (XFRAME (frame), donde_esta.x, donde_esta.y, - &mene, &_mene, &tekel, &upharsin, - &needle_in_haystack, - &mens, &sana, &in, &corpore, &sano); - - if (needle_in_haystack) { - win = wrap_window (needle_in_haystack); - /* stderr_out ("found needle\n"); - debug_print (win); */ + /* stderr_out ("donde_esta: %d %d\n", donde_esta.x, donde_esta.y); */ + pixel_to_glyph_translation (XFRAME (frame), donde_esta.x, donde_esta.y, + &mene, &_mene, &tekel, &upharsin, + &needle_in_haystack, + &mens, &sana, &in, &corpore, &sano); + + if (needle_in_haystack) + { + win = wrap_window (needle_in_haystack); + /* stderr_out ("found needle\n"); + debug_print (win); */ + } } - else + + if (!needle_in_haystack) { win = FRAME_SELECTED_WINDOW (XFRAME (frame)); needle_in_haystack = XWINDOW (win);