Mercurial > vim
diff src/gui_xim.c @ 24162:cb8b9bf76082 v8.2.2622
patch 8.2.2622: GTK: error when starting up and -geometry is given
Commit: https://github.com/vim/vim/commit/a555e6fcb6ec97b5ab30b20a340b228f4d820f14
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 18 22:28:57 2021 +0100
patch 8.2.2622: GTK: error when starting up and -geometry is given
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 18 Mar 2021 22:30:04 +0100 |
parents | 2d3cd9acf853 |
children | 038eb6d9003a |
line wrap: on
line diff
--- 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);