]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix specifying terminal names to some functions on Haiku
authorPo Lu <luangruo@yahoo.com>
Thu, 19 May 2022 06:46:21 +0000 (06:46 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 19 May 2022 06:46:21 +0000 (06:46 +0000)
* src/haikufns.c (haiku_display_info_for_name): Implement
correctly.

src/haikufns.c

index 314152008b0812b75bfe90bc11c0868a6659940b..427ca7762da317eb2b1d9d4a949d01e2cb567293 100644 (file)
@@ -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\"");