1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2021-03-18 22:28:57 +01:00
parent 108cf0153c
commit a555e6fcb6
5 changed files with 85 additions and 62 deletions

View File

@@ -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);