]> git.eshelyaron.com Git - emacs.git/commitdiff
* macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
authorAndrew Choi <akochoi@shaw.ca>
Mon, 13 Oct 2003 00:07:10 +0000 (00:07 +0000)
committerAndrew Choi <akochoi@shaw.ca>
Mon, 13 Oct 2003 00:07:10 +0000 (00:07 +0000)
src/ChangeLog
src/macterm.c

index c408b680336260bfccde01625bd4b9319dff081d..ecd9d17e9c4333a27e1e0aef1e2b1041fe9b437c 100644 (file)
@@ -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\e,Ad\e(Brv  <jan.h.d@swipnet.se>
index fc9b890db18a225b526f9068f3c65df703c3af0f..6fe2bc1603c4f7642afb8cf131526f16f1f9bae4 100644 (file)
@@ -7875,12 +7875,13 @@ XTread_socket (int sd, struct input_event *bufp, int numchars, int expected)
 
            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 */