In Fposn_at_x_y do not allow internal window as argument.
authorMartin Rudalics <rudalics@gmx.at>
Thu, 23 Aug 2012 08:33:56 +0000 (10:33 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Thu, 23 Aug 2012 08:33:56 +0000 (10:33 +0200)
* keyboard.c (Fposn_at_x_y): Do not allow internal window as
argument.

src/ChangeLog
src/keyboard.c

index 3f6f6a2..158be6d 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-23  Martin Rudalics  <rudalics@gmx.at>
+
+       * keyboard.c (Fposn_at_x_y): Do not allow internal window as
+       argument.
+
 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.
index 3d4061a..3e0ead7 100644 (file)
@@ -11251,7 +11251,7 @@ The `posn-' functions access elements of such lists.  */)
 
   if (WINDOWP (frame_or_window))
     {
-      struct window *w = decode_valid_window (frame_or_window);
+      struct window *w = decode_live_window (frame_or_window);
 
       XSETINT (x, (XINT (x)
                   + WINDOW_LEFT_EDGE_X (w)