changeset 78059:ed488d84196f

[USE_MAC_TSM] (mac_handle_text_input_event): Check WINDOWP before using XWINDOW.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Thu, 28 Jun 2007 10:09:57 +0000
parents 431b099d4610
children ce887279760d
files src/macterm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Thu Jun 28 09:13:37 2007 +0000
+++ b/src/macterm.c	Thu Jun 28 10:09:57 2007 +0000
@@ -10244,6 +10244,9 @@
 	   previous events may change some states about display.  */
 	if (NILP (Foverlay_get (Vmac_ts_active_input_overlay, Qbefore_string)))
 	  {
+	    if (!WINDOWP (echo_area_window))
+	      return eventNotHandledErr;
+
 	    /* Active input area is displayed in the echo area.  */
 	    w = XWINDOW (echo_area_window);
 	    f = WINDOW_XFRAME (w);