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)
diff --git a/src/gui_xim.c b/src/gui_xim.c
index ee92301..2dd6fd9 100644
--- a/src/gui_xim.c
+++ b/src/gui_xim.c
@@ -207,7 +207,7 @@
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);