changeset 50327:f139cd7e1d62

(xt_action_hook): Unset dragging so the reset does take place.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 28 Mar 2003 14:45:30 +0000
parents d63b3eeca844
children dda666362e84
files src/xterm.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Mar 28 14:25:14 2003 +0000
+++ b/src/xterm.c	Fri Mar 28 14:45:30 2003 +0000
@@ -3988,10 +3988,11 @@
       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;