comparison 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
comparison
equal deleted inserted replaced
24161:2766741b201d 24162:cb8b9bf76082
205 int screen_x, screen_y, screen_width, screen_height; 205 int screen_x, screen_y, screen_width, screen_height;
206 206
207 if (preedit_window == NULL) 207 if (preedit_window == NULL)
208 return; 208 return;
209 209
210 gui_gtk_get_screen_geom_of_win(gui.drawarea, 210 gui_gtk_get_screen_geom_of_win(gui.drawarea, 0, 0,
211 &screen_x, &screen_y, &screen_width, &screen_height); 211 &screen_x, &screen_y, &screen_width, &screen_height);
212 gdk_window_get_origin(gtk_widget_get_window(gui.drawarea), &x, &y); 212 gdk_window_get_origin(gtk_widget_get_window(gui.drawarea), &x, &y);
213 gtk_window_get_size(GTK_WINDOW(preedit_window), &width, &height); 213 gtk_window_get_size(GTK_WINDOW(preedit_window), &width, &height);
214 x = x + FILL_X(gui.col); 214 x = x + FILL_X(gui.col);
215 y = y + FILL_Y(gui.row); 215 y = y + FILL_Y(gui.row);