changeset 74622:1d33c1199b82

(redisplay_window): Set ignore_mouse_drag_p if tool-bar is resized to avoid generating a mouse drag event.
author Kim F. Storm <storm@cua.dk>
date Fri, 15 Dec 2006 00:23:10 +0000
parents 130738a27be7
children 4104d9a4dfbd
files src/xdisp.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Dec 15 00:22:57 2006 +0000
+++ b/src/xdisp.c	Fri Dec 15 00:23:10 2006 +0000
@@ -13451,8 +13451,11 @@
 
 #endif
 
-      if (redisplay_tool_bar_p)
-        redisplay_tool_bar (f);
+      if (redisplay_tool_bar_p && redisplay_tool_bar (f))
+	{
+	  extern int ignore_mouse_drag_p;
+	  ignore_mouse_drag_p = 1;
+	}
 #endif
     }