diff src/scrollbar-x.c @ 20:859a2309aef8 r19-15b93

Import from CVS: tag r19-15b93
author cvs
date Mon, 13 Aug 2007 08:50:05 +0200
parents 0293115a14e9
children 441bb1e64a06
line wrap: on
line diff
--- a/src/scrollbar-x.c	Mon Aug 13 08:49:44 2007 +0200
+++ b/src/scrollbar-x.c	Mon Aug 13 08:50:05 2007 +0200
@@ -46,7 +46,7 @@
    scrollbar is incredibly stupid about updating the thumb and causes
    lots of flicker if it is done too often.  */
 static int inhibit_thumb_size_change;
-int stupid_vertical_scrollbar_drag_hack = 1;
+int stupid_vertical_scrollbar_drag_hack;
 
 /* Doesn't work with athena */
 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID)
@@ -597,8 +597,9 @@
       SCROLLBAR_X_VDRAG_ORIG_VALUE (instance) = data->slider_value;
       SCROLLBAR_X_VDRAG_ORIG_WINDOW_START (instance) =
 	XINT (Fwindow_start (win));
+#else
+      stupid_vertical_scrollbar_drag_hack = 0;
 #endif
-      stupid_vertical_scrollbar_drag_hack = 0;
       break;
 
     case SCROLLBAR_DRAG:
@@ -857,4 +858,5 @@
 #elif defined (LWLIB_SCROLLBARS_ATHENA)
   Fprovide (intern ("athena-scrollbars"));
 #endif
+  stupid_vertical_scrollbar_drag_hack = 1;
 }