From de3f71d670b870a0bd3f10cbedb427c0d81f8dbc Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Thu, 28 Jun 2007 10:10:29 +0000 Subject: [PATCH] [USE_MAC_TSM] (mac_handle_text_input_event): Check WINDOWP before using XWINDOW. --- src/ChangeLog | 5 +++++ src/macterm.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index c87474ba4ca..190d6fb0e36 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-06-28 YAMAMOTO Mitsuharu + + * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): + Check WINDOWP before using XWINDOW. + 2007-06-27 Juanma Barranquero * buffer.c (syms_of_buffer) : Fix typo in docstring. diff --git a/src/macterm.c b/src/macterm.c index 32abee0bc10..372eff645fd 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -10244,6 +10244,9 @@ mac_handle_text_input_event (next_handler, event, data) 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); -- 2.39.2