changeset 7101:e7afa8046b41

(XTmouse_position, XTread_socket): Don't use last_mouse_frame if it's dead.
author Karl Heuer <kwzh@gnu.org>
date Mon, 25 Apr 1994 22:55:33 +0000
parents 3aaa031a8fe4
children e3d392f28d8f
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Apr 25 22:32:24 1994 +0000
+++ b/src/xterm.c	Mon Apr 25 22:55:33 1994 +0000
@@ -2485,7 +2485,7 @@
 
 	win = root;
 
-	if (x_mouse_grabbed)
+	if (x_mouse_grabbed && FRAME_LIVE_P (last_mouse_frame))
 	  {
 	    /* If mouse was grabbed on a frame, give coords for that frame
 	       even if the mouse is now outside it.  */
@@ -3993,7 +3993,7 @@
 #ifdef HAVE_X11
 	case MotionNotify:
 	  {
-	    if (x_mouse_grabbed)
+	    if (x_mouse_grabbed && FRAME_LIVE_P (last_mouse_frame))
 	      f = last_mouse_frame;
 	    else
 	      f = x_window_to_frame (event.xmotion.window);