Commit 06ef4a3f authored by Karl Heuer's avatar Karl Heuer
Browse files

(XTmouse_position, XTread_socket): Don't use last_mouse_frame if it's dead.

parent 983f76b8
......@@ -2485,7 +2485,7 @@ XTmouse_position (f, bar_window, part, x, y, time)
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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
#ifdef HAVE_X11
case MotionNotify:
if (x_mouse_grabbed)
if (x_mouse_grabbed && FRAME_LIVE_P (last_mouse_frame))
f = last_mouse_frame;
f = x_window_to_frame (event.xmotion.window);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment