# HG changeset patch # User Richard M. Stallman # Date 761698581 0 # Node ID 1f9f36411af8826d041f31503645c5a3a2cd1ae1 # Parent f68004daa5239904c1940a4221a6eb50bccba6b0 (XTread_socket--cases KeyPress, EnterNotify, LeaveNotify) (cases FocusIn, FocusOut): Use x_any_window_to_frame. diff -r f68004daa523 -r 1f9f36411af8 src/xterm.c --- a/src/xterm.c Sat Feb 19 20:53:26 1994 +0000 +++ b/src/xterm.c Sat Feb 19 22:56:21 1994 +0000 @@ -3144,7 +3144,7 @@ #ifdef HAVE_X11 case KeyPress: - f = x_window_to_frame (event.xkey.window); + f = x_any_window_to_frame (event.xkey.window); if (f != 0) { @@ -3337,7 +3337,7 @@ then a mere LeaveNotify is enough to free you. */ case EnterNotify: - f = x_window_to_frame (event.xcrossing.window); + f = x_any_window_to_frame (event.xcrossing.window); if (event.xcrossing.focus) /* Entered Window */ { @@ -3358,7 +3358,7 @@ break; case FocusIn: - f = x_window_to_frame (event.xfocus.window); + f = x_any_window_to_frame (event.xfocus.window); if (event.xfocus.detail != NotifyPointer) x_focus_event_frame = f; if (f) @@ -3370,7 +3370,7 @@ case LeaveNotify: - f = x_window_to_frame (event.xcrossing.window); + f = x_any_window_to_frame (event.xcrossing.window); if (event.xcrossing.focus) { @@ -3392,7 +3392,7 @@ break; case FocusOut: - f = x_window_to_frame (event.xfocus.window); + f = x_any_window_to_frame (event.xfocus.window); if (event.xfocus.detail != NotifyPointer && f == x_focus_event_frame) x_focus_event_frame = 0;