summaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-09 18:45:26 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-09 18:45:26 +0200
commit7be9b50fd7e238722c9ba5c0ef1d2a7e7e52b9e3 (patch)
treef1a9c077e1846b5926b91b8221edc7fb0c12797f /src/mbyte.c
parent5b5adf5b9cd226d775643872e65c62674d6ada95 (diff)
downloadvim-git-7be9b50fd7e238722c9ba5c0ef1d2a7e7e52b9e3.tar.gz
patch 8.0.1084: GTK build has compiler warningsv8.0.1084
Problem: GTK build has compiler warnings. (Christian Brabandt) Solution: Get screen size with a different function. (Ken Takata, Yasuhiro Matsumoto)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index f279bdef7..4df239728 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4871,8 +4871,7 @@ im_preedit_window_set_position(void)
if (preedit_window == NULL)
return;
- sw = gdk_screen_get_width(gtk_widget_get_screen(preedit_window));
- sh = gdk_screen_get_height(gtk_widget_get_screen(preedit_window));
+ gui_gtk_get_screen_size_of_win(preedit_window, &sw, &sh);
#if GTK_CHECK_VERSION(3,0,0)
gdk_window_get_origin(gtk_widget_get_window(gui.drawarea), &x, &y);
#else