summaryrefslogtreecommitdiffstats
path: root/src/gui_mac.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-07-13 17:41:49 +0000
committerBram Moolenaar <Bram@vim.org>2008-07-13 17:41:49 +0000
commitc236c16d0884c7d6cdc4dbaddb8cb3992085f83e (patch)
tree7d87344cdf07b6b9234abe26ccef39fbbee54f63 /src/gui_mac.c
parentb316376b4893ac3ae62f7f33c483b28b7fc147c0 (diff)
updated for version 7.2b-000v7.2b.000
Diffstat (limited to 'src/gui_mac.c')
-rw-r--r--src/gui_mac.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c
index 1ef5820539..77cd5cad2b 100644
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -2543,7 +2543,6 @@ gui_mac_doMouseUpEvent(EventRecord *theEvent)
gui_mac_mouse_wheel(EventHandlerCallRef nextHandler, EventRef theEvent,
void *data)
{
- EventRef bogusEvent;
Point point;
Rect bounds;
UInt32 mod;
@@ -2574,16 +2573,6 @@ gui_mac_mouse_wheel(EventHandlerCallRef nextHandler, EventRef theEvent,
if (mod & optionKey)
vim_mod |= MOUSE_ALT;
- /* post a bogus event to wake up WaitNextEvent */
- if (noErr != CreateEvent(NULL, kEventClassMouse, kEventMouseMoved, 0,
- kEventAttributeNone, &bogusEvent))
- goto bail;
- if (noErr != PostEventToQueue(GetMainEventQueue(), bogusEvent,
- kEventPriorityLow))
- goto bail;
-
- ReleaseEvent(bogusEvent);
-
if (noErr == GetWindowBounds(gui.VimWindow, kWindowContentRgn, &bounds))
{
point.h -= bounds.left;
@@ -2593,6 +2582,9 @@ gui_mac_mouse_wheel(EventHandlerCallRef nextHandler, EventRef theEvent,
gui_send_mouse_event((delta > 0) ? MOUSE_4 : MOUSE_5,
point.h, point.v, FALSE, vim_mod);
+ /* post a bogus event to wake up WaitNextEvent */
+ PostEvent(keyUp, 0);
+
return noErr;
bail: