]> git.eshelyaron.com Git - emacs.git/commitdiff
(xt_action_hook): Unset dragging so the reset does take place.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 28 Mar 2003 14:45:30 +0000 (14:45 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 28 Mar 2003 14:45:30 +0000 (14:45 +0000)
src/xterm.c

index 1be9b4412f91b72ec4d06e5075d83a6051c8bdea..480239c2a1adb05493406f9f613d9e839805419f 100644 (file)
@@ -3988,10 +3988,11 @@ xt_action_hook (widget, client_data, action_name, event, params,
       w = XWINDOW (window_being_scrolled);
       
       if (!NILP (XSCROLL_BAR (w->vertical_scroll_bar)->dragging))
-       /* The thumb size is incorrect while dragging: fix it.  */
-       set_vertical_scroll_bar (w);
-
-      XSCROLL_BAR (w->vertical_scroll_bar)->dragging = Qnil;
+       {
+         XSCROLL_BAR (w->vertical_scroll_bar)->dragging = Qnil;
+         /* The thumb size is incorrect while dragging: fix it.  */
+         set_vertical_scroll_bar (w);
+       }
       window_being_scrolled = Qnil;
       last_scroll_bar_part = -1;