{
check_android_display_info (terminal);
- /* The Java part is implemented in a way that it always does the
- equivalent of backing store. */
- return Qalways;
+ /* Window contents are preserved insofar as they remain mapped, in a
+ fashion tantamount to WhenMapped. */
+ return Qwhen_mapped;
}
DEFUN ("x-display-visual-class", Fx_display_visual_class,
{
/* Miscellaneous symbols used by some functions here. */
DEFSYM (Qtrue_color, "true-color");
- DEFSYM (Qalways, "always");
+ DEFSYM (Qwhen_mapped, "when-mapped");
DEFVAR_LISP ("x-pointer-shape", Vx_pointer_shape,
doc: /* SKIP: real text in xfns.c. */);
static void dissociate_if_controlling_tty (int fd);
static void delete_tty (struct terminal *);
-#endif
+#endif /* !HAVE_ANDROID */
static AVOID maybe_fatal (bool, struct terminal *, const char *, const char *,
...)
if (f != t->display_info.tty->output)
emacs_fclose (t->display_info.tty->output);
emacs_fclose (f);
-#endif
+#endif /* !MSDOS */
t->display_info.tty->input = 0;
t->display_info.tty->output = 0;
/* Clear display hooks to prevent further output. */
clear_tty_hooks (t);
-#else
- /* This will always signal on Android. */
- decode_tty_terminal (tty);
-#endif
+#else /* HAVE_ANDROID */
+ /* Android doesn't support TTY terminal devices, so unconditionally
+ signal. */
+ error ("Attempt to suspend a non-text terminal device");
+#endif /* !HAVE_ANDROID */
return Qnil;
}
if (!O_IGNORE_CTTY && strcmp (t->display_info.tty->name, DEV_TTY) != 0)
dissociate_if_controlling_tty (fd);
-#endif
+#endif /* MSDOS */
add_keyboard_wait_descriptor (fd);
}
set_tty_hooks (t);
-#else
- decode_tty_terminal (tty);
-#endif
+#else /* HAVE_ANDROID */
+ /* Android doesn't support TTY terminal devices, so unconditionally
+ signal. */
+ error ("Attempt to suspend a non-text terminal device");
+#endif /* !HAVE_ANDROID */
return Qnil;
}
error ("Not a tty terminal");
}
-#endif
+#endif /* !HAVE_ANDROID */
\f
/***********************************************************************