From 4efc4c32a70baf43bc64ef43d4a68c15994bc03a Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Mon, 26 Jul 2010 18:58:38 +0200 Subject: [PATCH] Change mouse cursor to arrow when outside window --- src/gui.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gui.c b/src/gui.c index aa96118080..d945f7630f 100644 --- a/src/gui.c +++ b/src/gui.c @@ -4782,8 +4782,17 @@ xy2win(x, y) row = Y_2_ROW(y); col = X_2_COL(x); +# ifdef FEAT_GUI_MACVIM + /* Mouse cursor should always be an arrow when outside all windows */ + if (row < 0 || col < 0 || col >= Columns || row >= Rows) + { + update_mouseshape(SHAPE_IDX_N); + return NULL; + } +# else if (row < 0 || col < 0) /* before first window */ return NULL; +# endif wp = mouse_find_win(&row, &col); # ifdef FEAT_MOUSESHAPE if (State == HITRETURN || State == ASKMORE)