From 7db4ddf40001758a58611c819605075d34edd924 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Thu, 23 Aug 2012 10:33:56 +0200 Subject: [PATCH] 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. --- src/ChangeLog | 5 +++++ src/keyboard.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.2