summaryrefslogtreecommitdiffstats
path: root/src/gui_beval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-18 22:28:57 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-18 22:28:57 +0100
commita555e6fcb6ec97b5ab30b20a340b228f4d820f14 (patch)
tree08774815296acda9ddb18e315bb5083fefc267a4 /src/gui_beval.c
parent108cf0153c5770e343aec9e2390acdaa4a0b149a (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_beval.c')
-rw-r--r--src/gui_beval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_beval.c b/src/gui_beval.c
index 57122ffa9a..10478c6776 100644
--- a/src/gui_beval.c
+++ b/src/gui_beval.c
@@ -920,7 +920,7 @@ drawBalloon(BalloonEval *beval)
screen = gtk_widget_get_screen(beval->target);
gtk_window_set_screen(GTK_WINDOW(beval->balloonShell), screen);
# endif
- gui_gtk_get_screen_geom_of_win(beval->target,
+ gui_gtk_get_screen_geom_of_win(beval->target, 0, 0,
&screen_x, &screen_y, &screen_w, &screen_h);
# if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_ensure_style(beval->balloonShell);