aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog3
-rw-r--r--src/macterm.c13
2 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c408b68033..ecd9d17e9c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
2003-10-12 Andrew Choi <[email protected]>
+ * macterm.c (XTread_socket): Call DragWindow only for mouseDown
+ events.
+
* s/darwin.h (GC_MARK_STACK): Define.
2003-10-12 Jan Dj,Ad(Brv <[email protected]>
diff --git a/src/macterm.c b/src/macterm.c
index fc9b890db1..6fe2bc1603 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -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 */