From 0a877e9df5def14da30ab00046b501da20c9112a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 14 May 2022 13:48:35 +0100 Subject: [PATCH] Fix build failure with -DNOT_X_WINDOWS. The recent window resize fixes introduced an unchecked use of GDK_IS_X11_DISPLAY. --- unix/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/window.c b/unix/window.c index d9d007b4..c2e79bf0 100644 --- a/unix/window.c +++ b/unix/window.c @@ -4506,7 +4506,7 @@ void set_geom_hints(GtkFrontend *inst) * So instead, I simply avoid setting geometry hints at all on any * GDK backend other than X11, and hopefully that's a workaround. */ -#if GTK_CHECK_VERSION(3,0,0) +#if GTK_CHECK_VERSION(3,0,0) && !defined NOT_X_WINDOWS if (!GDK_IS_X11_DISPLAY(gdk_display_get_default())) return; #endif