summaryrefslogtreecommitdiff
path: root/src/gui.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-29 17:35:23 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-29 17:35:23 +0200
commit92d147be959e689f8f58fd5d138a31835e160289 (patch)
tree5ba25e99d246153860ba91d9fc7629b67801d993 /src/gui.h
parentfda95e75721fb221495c69e493ec2761b5d85123 (diff)
downloadvim-git-92d147be959e689f8f58fd5d138a31835e160289.tar.gz
patch 8.1.0228: dropping files is ignored while Vim is busyv8.1.0228
Problem: Dropping files is ignored while Vim is busy. Solution: Postpone the effect of dropping files until it's safe.
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui.h b/src/gui.h
index 13c97e61b..9ac5e071c 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -65,8 +65,9 @@
/*
* GUIs that support dropping files on a running Vim.
*/
-#if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MAC) \
- || defined(FEAT_GUI_GTK)
+#if (defined(FEAT_DND) && defined(FEAT_GUI_GTK)) \
+ || defined(FEAT_GUI_MSWIN) \
+ || defined(FEAT_GUI_MAC)
# define HAVE_DROP_FILE
#endif