summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-08 21:49:45 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-08 21:49:45 +0000
commit6cc1619799b39016acea738c1ae7ea17d2588b9c (patch)
tree63c490f800930f83d129eadf8450d3309eab5052 /src/gui_gtk_x11.c
parent9588a0f72bc1f72962e3e327d29775d3a970e579 (diff)
updated for version 7.0035v7.0035
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index abf3fbeb7f..0ff685aeab 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -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)
-{
- int win_x;
-
- gdk_window_get_pointer(gui.drawarea->window, &win_x, NULL, NULL);
- return win_x;
-}
-
- int
-gui_mch_get_mouse_y(void)
+ void
+gui_mch_getmouse(int *x, int *y)
{
- 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