From: Po Lu Date: Thu, 19 May 2022 06:46:21 +0000 (+0000) Subject: Fix specifying terminal names to some functions on Haiku X-Git-Tag: emacs-29.0.90~1910^2~591 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e54e44c94e390c9f472d62fef5d1360a962e7269;p=emacs.git Fix specifying terminal names to some functions on Haiku * src/haikufns.c (haiku_display_info_for_name): Implement correctly. --- 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\"");