mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
updated for version 7.0035
This commit is contained in:
@@ -6249,25 +6249,12 @@ gui_mch_get_rgb(guicolor_T pixel)
|
||||
}
|
||||
|
||||
/*
|
||||
* Get current y mouse coordinate in text window.
|
||||
* Return -1 when unknown.
|
||||
* Get current mouse coordinates in text window.
|
||||
*/
|
||||
int
|
||||
gui_mch_get_mouse_x(void)
|
||||
void
|
||||
gui_mch_getmouse(int *x, int *y)
|
||||
{
|
||||
int win_x;
|
||||
|
||||
gdk_window_get_pointer(gui.drawarea->window, &win_x, NULL, NULL);
|
||||
return win_x;
|
||||
}
|
||||
|
||||
int
|
||||
gui_mch_get_mouse_y(void)
|
||||
{
|
||||
int win_y;
|
||||
|
||||
gdk_window_get_pointer(gui.drawarea->window, NULL, &win_y, NULL);
|
||||
return win_y;
|
||||
gdk_window_get_pointer(gui.drawarea->window, x, y, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user