]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket--cases KeyPress, EnterNotify, LeaveNotify)
authorRichard M. Stallman <rms@gnu.org>
Sat, 19 Feb 1994 22:56:21 +0000 (22:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 19 Feb 1994 22:56:21 +0000 (22:56 +0000)
(cases FocusIn, FocusOut): Use x_any_window_to_frame.

src/xterm.c

index 7a4a718374da7cf797d39eaf3dc84294f4efe9ab..6be11f7e9a910ac40d5aa9e4b99967889d3bd99d 100644 (file)
@@ -3144,7 +3144,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
 
 #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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
             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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
          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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
 
 
        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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
          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;