From 6810a5ada5eaffacdc1d0d9b9c478209cbd90420 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 16 May 2021 07:10:58 +0300 Subject: [PATCH 52/52] gtk3.22: Use widget's window in impr_callback() It was using default window. See osdn #42183 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/citydlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui-gtk-3.22/citydlg.c b/client/gui-gtk-3.22/citydlg.c index 04640e667a..119adaabda 100644 --- a/client/gui-gtk-3.22/citydlg.c +++ b/client/gui-gtk-3.22/citydlg.c @@ -3211,7 +3211,7 @@ static void impr_callback(GtkTreeView *view, GtkTreePath *path, gtk_tree_model_get(model, &it, 0, &pimprove, -1); - win = gdk_get_default_root_window(); + win = gtk_widget_get_parent_window(GTK_WIDGET(view)); seat = gdk_display_get_default_seat(gdk_window_get_display(win)); gdk_window_get_device_position(win, gdk_seat_get_pointer(seat), -- 2.30.2