changeset 6010:1f9f36411af8

(XTread_socket--cases KeyPress, EnterNotify, LeaveNotify) (cases FocusIn, FocusOut): Use x_any_window_to_frame.
author Richard M. Stallman <rms@gnu.org>
date Sat, 19 Feb 1994 22:56:21 +0000
parents f68004daa523
children 5ef8aed59f2e
files src/xterm.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;