From dae2febd85390bd2afb73604a210bccbf9f92924 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 30 Apr 2025 09:56:07 +0100 Subject: [PATCH] GTK: don't try to turn off double-buffering on GTK 1 Apparently GTK 1 lacks gtk_widget_set_double_buffered(), so it should be conditional on running GTK 2. --- unix/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/window.c b/unix/window.c index 567f68c1..b3baf4af 100644 --- a/unix/window.c +++ b/unix/window.c @@ -5329,7 +5329,7 @@ void new_session_window(Conf *conf, const char *geometry_string) inst->area = gtk_drawing_area_new(); gtk_widget_set_name(GTK_WIDGET(inst->area), "drawing-area"); -#if !GTK_CHECK_VERSION(3,0,0) +#if GTK_CHECK_VERSION(2,0,0) && !GTK_CHECK_VERSION(3,0,0) /* * PuTTY does its own double-buffering, so we don't really need * GTK to do it as well. GTK documentation says this is probably