Mercurial > emacs
diff src/macterm.c @ 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 | 7f9bdf6cf89b |
| children | 8af8c70252c1 |
line wrap: on
line diff
--- 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 */
