From a6be50c01bb79ae1b0d40fb70e09225d34e5fe5a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 29 May 2021 07:53:47 +0300 Subject: [PATCH 51/52] gtk3x: Avoid gdk_display_get_primary_monitor() call Use gdk_display_get_monitor() instead See osdn #42413 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/gui_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui-gtk-4.0/gui_main.c b/client/gui-gtk-4.0/gui_main.c index 5e3fad95df..668828c4c6 100644 --- a/client/gui-gtk-4.0/gui_main.c +++ b/client/gui-gtk-4.0/gui_main.c @@ -2446,7 +2446,7 @@ static bool monitor_size(GdkRectangle *rect_p) return FALSE; } - monitor = gdk_display_get_primary_monitor(display); + monitor = gdk_display_get_monitor(display, 0); if (!monitor) { return FALSE; } -- 2.30.2