Update balloon eval on scroll wheel event

This commit is contained in:
Bjorn Winckler
2010-07-26 17:25:29 +02:00
parent 66cfd7c136
commit 51e86fbc86
2 changed files with 15 additions and 2 deletions
+13
View File
@@ -1865,6 +1865,19 @@ static void netbeansReadCallback(CFSocketRef s,
#endif
gui_send_mouse_event(button, col, row, NO, flags);
#ifdef FEAT_BEVAL
if (p_beval && balloonEval) {
// Update the balloon eval message after a slight delay (to avoid
// calling it too often).
[NSObject cancelPreviousPerformRequestsWithTarget:self
selector:@selector(bevalCallback:)
object:nil];
[self performSelector:@selector(bevalCallback:)
withObject:nil
afterDelay:MMBalloonEvalInternalDelay];
}
#endif
} else if (MouseDownMsgID == msgid) {
if (!data) return;
const void *bytes = [data bytes];
+2 -2
View File
@@ -1239,8 +1239,8 @@
* Only for GUIs where it was implemented.
*/
#if (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) \
|| defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32) \
|| defined(FEAT_GUI_MACVIM)) \
|| defined(FEAT_GUI_MACVIM) \
|| defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32)) \
&& ( ((defined(FEAT_TOOLBAR) || defined(FEAT_GUI_TABLINE)) \
&& !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)) \
|| defined(FEAT_SUN_WORKSHOP) \