diff src/gui.c @ 1476:ea1a2950ed16 v7.1.191

updated for version 7.1-191
author vimboss
date Thu, 03 Jan 2008 15:15:07 +0000
parents 40aa7ae37901
children cc4fe241baa3
line wrap: on
line diff
--- a/src/gui.c
+++ b/src/gui.c
@@ -3734,8 +3734,10 @@ gui_drag_scrollbar(sb, value, still_drag
     sb->value = value;
 
 #ifdef USE_ON_FLY_SCROLL
-    /* When not allowed to do the scrolling right now, return. */
-    if (dont_scroll || input_available())
+    /* When not allowed to do the scrolling right now, return.
+     * This also checked input_available(), but that causes the first click in
+     * a scrollbar to be ignored when Vim doesn't have focus. */
+    if (dont_scroll)
 	return;
 #endif
 #ifdef FEAT_INS_EXPAND