Mercurial > vim
comparison src/gui.c @ 859:99305c4c42d4
updated for version 7.0g02
author | vimboss |
---|---|
date | Wed, 03 May 2006 21:26:49 +0000 |
parents | b933657f7c9d |
children | af98ef7f5a39 |
comparison
equal
deleted
inserted
replaced
858:ca82de29ac19 | 859:99305c4c42d4 |
---|---|
4542 wp = xy2win(x, y); | 4542 wp = xy2win(x, y); |
4543 #endif | 4543 #endif |
4544 if (wp == curwin || wp == NULL) | 4544 if (wp == curwin || wp == NULL) |
4545 return; /* still in the same old window, or none at all */ | 4545 return; /* still in the same old window, or none at all */ |
4546 | 4546 |
4547 #ifdef FEAT_WINDOWS | |
4548 /* Ignore position in the tab pages line. */ | |
4549 if (Y_2_ROW(y) < tabline_height()) | |
4550 return; | |
4551 #endif | |
4552 | |
4547 /* | 4553 /* |
4548 * format a mouse click on status line input | 4554 * format a mouse click on status line input |
4549 * ala gui_send_mouse_event(0, x, y, 0, 0); | 4555 * ala gui_send_mouse_event(0, x, y, 0, 0); |
4550 * Trick: Use a column number -1, so that get_pseudo_mouse_code() will | 4556 * Trick: Use a column number -1, so that get_pseudo_mouse_code() will |
4551 * generate a K_LEFTMOUSE_NM key code. | 4557 * generate a K_LEFTMOUSE_NM key code. |
4595 | 4601 |
4596 gui_mch_getmouse(&x, &y); | 4602 gui_mch_getmouse(&x, &y); |
4597 /* Don't move the mouse when it's left or right of the Vim window */ | 4603 /* Don't move the mouse when it's left or right of the Vim window */ |
4598 if (x < 0 || x > Columns * gui.char_width) | 4604 if (x < 0 || x > Columns * gui.char_width) |
4599 return; | 4605 return; |
4606 # ifdef FEAT_WINDOWS | |
4607 if (Y_2_ROW(y) >= tabline_height()) | |
4608 # else | |
4600 if (y >= 0) | 4609 if (y >= 0) |
4610 # endif | |
4601 wp = xy2win(x, y); | 4611 wp = xy2win(x, y); |
4602 if (wp != curwin && wp != NULL) /* If in other than current window */ | 4612 if (wp != curwin && wp != NULL) /* If in other than current window */ |
4603 { | 4613 { |
4604 validate_cline_row(); | 4614 validate_cline_row(); |
4605 gui_mch_setmouse((int)W_ENDCOL(curwin) * gui.char_width - 3, | 4615 gui_mch_setmouse((int)W_ENDCOL(curwin) * gui.char_width - 3, |