From e54e44c94e390c9f472d62fef5d1360a962e7269 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 19 May 2022 06:46:21 +0000 Subject: [PATCH] Fix specifying terminal names to some functions on Haiku * src/haikufns.c (haiku_display_info_for_name): Implement correctly. --- src/haikufns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/haikufns.c b/src/haikufns.c index 314152008b0..427ca7762da 100644 --- a/src/haikufns.c +++ b/src/haikufns.c @@ -358,12 +358,12 @@ haiku_display_info_for_name (Lisp_Object name) { CHECK_STRING (name); - if (!NILP (Fstring_equal (name, build_string ("be")))) + if (!strcmp (SSDATA (name), "be")) { - if (!x_display_list) + if (x_display_list) return x_display_list; - error ("Haiku windowing not initialized"); + return haiku_term_init (); } error ("Haiku displays can only be named \"be\""); -- 2.39.2