From: Martin Rudalics Date: Thu, 23 Aug 2012 08:33:56 +0000 (+0200) Subject: In Fposn_at_x_y do not allow internal window as argument. X-Git-Tag: emacs-24.2.90~530 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7db4ddf40001758a58611c819605075d34edd924;p=emacs.git In Fposn_at_x_y do not allow internal window as argument. * keyboard.c (Fposn_at_x_y): Do not allow internal window as argument. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3f6f6a272f0..158be6d68a9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-08-23 Martin Rudalics + + * keyboard.c (Fposn_at_x_y): Do not allow internal window as + argument. + 2012-08-23 Paul Eggert * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean. diff --git a/src/keyboard.c b/src/keyboard.c index 3d4061accfc..3e0ead7e4fb 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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)