From 4f41d09c2166911a3b5695b871a0ae3d3506b294 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 4 Dec 2021 23:13:25 +0200 Subject: [PATCH 38/38] gtk3x: Replace gdk_display_get_monitor() call It's gone away in gtk-3.98.4. See osdn #43306 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/gui_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/gui-gtk-4.0/gui_main.c b/client/gui-gtk-4.0/gui_main.c index ffe9ac507d..9d3bec748e 100644 --- a/client/gui-gtk-4.0/gui_main.c +++ b/client/gui-gtk-4.0/gui_main.c @@ -2430,12 +2430,14 @@ static bool monitor_size(GdkRectangle *rect_p) return FALSE; } - monitor = gdk_display_get_monitor(display, 0); + monitor = g_list_model_get_item(gdk_display_get_monitors(display), 0); + if (!monitor) { return FALSE; } gdk_monitor_get_geometry(monitor, rect_p); + return TRUE; } -- 2.33.0