diff options
| author | Richard M. Stallman | 1994-05-06 06:25:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-06 06:25:15 +0000 |
| commit | 5da3133aae3027f85c69e8e5baf9c9054b6fcbea (patch) | |
| tree | 9c762799879be40dc2a73fc3a2636e155f6c663b /src | |
| parent | 3e062f782c8961ea54064ee2154782c643eab784 (diff) | |
| download | emacs-5da3133aae3027f85c69e8e5baf9c9054b6fcbea.tar.gz emacs-5da3133aae3027f85c69e8e5baf9c9054b6fcbea.zip | |
(make_lispy_event): Ignore mouse events for deleted frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
| 2524 | Lisp_Object posn; | 2524 | Lisp_Object posn; |
| 2525 | int row, column; | 2525 | int row, column; |
| 2526 | 2526 | ||
| 2527 | /* Ignore mouse events that were made on frame that | ||
| 2528 | have been deleted. */ | ||
| 2529 | if (! FRAME_LIVE_P (f)) | ||
| 2530 | return Qnil; | ||
| 2531 | |||
| 2527 | pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y), | 2532 | pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y), |
| 2528 | &column, &row, 0, 0); | 2533 | &column, &row, 0, 0); |
| 2529 | 2534 | ||