mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Change mouse cursor to arrow when outside window
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user