]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_mouse_position): Handle INSIST < 0.
authorKarl Heuer <kwzh@gnu.org>
Fri, 24 Oct 1997 19:58:22 +0000 (19:58 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 24 Oct 1997 19:58:22 +0000 (19:58 +0000)
src/w32term.c

index a433abc6bb47ada7f64b66ee100e412650517a3c..053c148bc3ee8bdc8cec3c4add79798e2d071400 100644 (file)
@@ -1748,7 +1748,7 @@ w32_mouse_position (fp, insist, bar_window, part, x, y, time)
 
   BLOCK_INPUT;
 
-  if (! NILP (last_mouse_scroll_bar))
+  if (! NILP (last_mouse_scroll_bar) && insist == 0)
     /* This is never called at the moment.  */
     x_scroll_bar_report_motion (fp, bar_window, part, x, y, time);
   else
@@ -1790,7 +1790,7 @@ w32_mouse_position (fp, insist, bar_window, part, x, y, time)
              }
          }
 
-       if (f1 == 0 && insist)
+       if (f1 == 0 && insist > 0)
          f1 = selected_frame;
 
        if (f1)