diff options
author | Andrew Choi <akochoi@shaw.ca> | 2003-10-13 00:07:10 +0000 |
---|---|---|
committer | Andrew Choi <akochoi@shaw.ca> | 2003-10-13 00:07:10 +0000 |
commit | a4887377a2f0b7983167bdcc06c35c632b1f223e (patch) | |
tree | bfeb817dd110c4dca2d03dc95bef7bcdced757af /src | |
parent | 3f080e4e60bf30d3b1e14ff276bbbf0139c1e903 (diff) | |
download | emacs-a4887377a2f0b7983167bdcc06c35c632b1f223e.tar.gz |
* macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 3 | ||||
-rw-r--r-- | src/macterm.c | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c408b680336..ecd9d17e9c4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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> diff --git a/src/macterm.c b/src/macterm.c index fc9b890db18..6fe2bc1603c 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 */ |