]> git.eshelyaron.com Git - emacs.git/commitdiff
(make_lispy_event): If the position is not in a window,
authorRichard M. Stallman <rms@gnu.org>
Wed, 3 Aug 1994 07:39:40 +0000 (07:39 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 3 Aug 1994 07:39:40 +0000 (07:39 +0000)
at least pass along the frame it is in.

src/keyboard.c

index 66b75ea6ea8c242d7d89610ce8e1d82b30b63860..76fba2e35ad797db9b918bcb0f7e6fc9a2b22e13 100644 (file)
@@ -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;