diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-18 22:28:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-18 22:28:57 +0100 |
commit | a555e6fcb6ec97b5ab30b20a340b228f4d820f14 (patch) | |
tree | 08774815296acda9ddb18e315bb5083fefc267a4 /src/gui_xim.c | |
parent | 108cf0153c5770e343aec9e2390acdaa4a0b149a (diff) |
patch 8.2.2622: GTK: error when starting up and -geometry is givenv8.2.2622
Problem: GTK: error when starting up and -geometry is given. (Dominique
Pellé)
Solution: Use another function to get the monitor if the window has not been
created yet. (closes #7978)
Diffstat (limited to 'src/gui_xim.c')
-rw-r--r-- | src/gui_xim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_xim.c b/src/gui_xim.c index ee92301337..2dd6fd9159 100644 --- a/src/gui_xim.c +++ b/src/gui_xim.c @@ -207,7 +207,7 @@ im_preedit_window_set_position(void) if (preedit_window == NULL) return; - gui_gtk_get_screen_geom_of_win(gui.drawarea, + gui_gtk_get_screen_geom_of_win(gui.drawarea, 0, 0, &screen_x, &screen_y, &screen_width, &screen_height); gdk_window_get_origin(gtk_widget_get_window(gui.drawarea), &x, &y); gtk_window_get_size(GTK_WINDOW(preedit_window), &width, &height); |