changeset 52827:7d76fa8c5eda

* macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
author Andrew Choi <akochoi@shaw.ca>
date Mon, 13 Oct 2003 00:07:10 +0000
parents 99773e17bcaf
children d08ef8842be1
files src/ChangeLog src/macterm.c
diffstat 2 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Oct 12 23:38:07 2003 +0000
+++ b/src/ChangeLog	Mon Oct 13 00:07:10 2003 +0000
@@ -1,5 +1,8 @@
 2003-10-12  Andrew Choi  <akochoi@shaw.ca>
 
+	* macterm.c (XTread_socket): Call DragWindow only for mouseDown
+	events.
+
 	* s/darwin.h (GC_MARK_STACK): Define.
 
 2003-10-12  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
--- a/src/macterm.c	Sun Oct 12 23:38:07 2003 +0000
+++ b/src/macterm.c	Mon Oct 13 00:07:10 2003 +0000
@@ -7875,12 +7875,13 @@
 
 	    case inDrag:
 #if TARGET_API_MAC_CARBON
-	      {
-	        BitMap bm;
-
-	        GetQDGlobalsScreenBits (&bm);
-	        DragWindow (window_ptr, er.where, &bm.bounds);
-	      }
+              if (er.what == mouseDown)  
+		{
+		  BitMap bm;
+		  
+		  GetQDGlobalsScreenBits (&bm);
+		  DragWindow (window_ptr, er.where, &bm.bounds);
+		}
 #else /* not TARGET_API_MAC_CARBON */
 	      DragWindow (window_ptr, er.where, &qd.screenBits.bounds);
 #endif /* not TARGET_API_MAC_CARBON */