summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-01-03 15:15:07 +0000
committerBram Moolenaar <Bram@vim.org>2008-01-03 15:15:07 +0000
commit6784078701dc1ad93348238a38202027e23854fe (patch)
tree5f5e09ed3e57c6d1e4cca121d2bab456ad1d875f /src/gui.c
parenta045324992492294c198a75719fc9f05ca3efc35 (diff)
updated for version 7.1-191v7.1.191
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index e5a0c267af..dd69e8d700 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -3734,8 +3734,10 @@ gui_drag_scrollbar(sb, value, still_dragging)
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