aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-08-03 07:39:40 +0000
committerRichard M. Stallman <[email protected]>1994-08-03 07:39:40 +0000
commit78ced549abd2404ffd552a446dd84be2650df835 (patch)
treef75fa289b54f1602d34c70ed6556a495351923c0 /src/keyboard.c
parent44a4a59b6055ecfe398a0232a84731b227394b1d (diff)
(make_lispy_event): If the position is not in a window,
at least pass along the frame it is in.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 66b75ea6ea..76fba2e35a 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2675,7 +2675,10 @@ make_lispy_event (event)
window = window_from_coordinates (f, column, row, &part);
if (XTYPE (window) != Lisp_Window)
- posn = Qnil;
+ {
+ window = event->frame_or_window;
+ posn = Qnil;
+ }
else
{
int pixcolumn, pixrow;