From 5da3133aae3027f85c69e8e5baf9c9054b6fcbea Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 6 May 1994 06:25:15 +0000 Subject: [PATCH] (make_lispy_event): Ignore mouse events for deleted frame. --- src/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index 94cbb26464e..900833c2dcb 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2524,6 +2524,11 @@ make_lispy_event (event) Lisp_Object posn; int row, column; + /* Ignore mouse events that were made on frame that + have been deleted. */ + if (! FRAME_LIVE_P (f)) + return Qnil; + pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y), &column, &row, 0, 0); -- 2.39.5