This method was introduced in gtk 3.22, so fix the conditional to
account for older versions of gtk 3.
---
 gtkwindows.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtkwindows.c b/gtkwindows.c
index ea768fe8..c731f5a5 100644
--- a/gtkwindows.c
+++ b/gtkwindows.c
@@ -105,7 +105,7 @@ dialog_mapped(GtkWidget * window, gpointer UNUSED(data))
 
     gtk_widget_get_allocation(window, &allocation);
 
-#if GTK_CHECK_VERSION(3,0,0)
+#if GTK_CHECK_VERSION(3,22,0)
     GdkDisplay *display = gtk_widget_get_display(window);
     if (!display || gdk_display_get_n_monitors(display) == 1) {
         monitorrect.x = 0;
-- 
2.45.1


Reply via email to