diff options
| author | Karl Heuer | 1994-04-25 22:55:33 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-25 22:55:33 +0000 |
| commit | 06ef4a3f7e814690a852ef8427c75b8e3c6a7900 (patch) | |
| tree | 3e4ffedf01faebd1c86276e45756c16ca486fd21 /src | |
| parent | 983f76b88ffff98712a624a72d8ff80cd2dcfe61 (diff) | |
| download | emacs-06ef4a3f7e814690a852ef8427c75b8e3c6a7900.tar.gz emacs-06ef4a3f7e814690a852ef8427c75b8e3c6a7900.zip | |
(XTmouse_position, XTread_socket): Don't use last_mouse_frame if it's dead.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 0ae434b2b17..f2a45d6514f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2485,7 +2485,7 @@ XTmouse_position (f, bar_window, part, x, y, time) | |||
| 2485 | 2485 | ||
| 2486 | win = root; | 2486 | win = root; |
| 2487 | 2487 | ||
| 2488 | if (x_mouse_grabbed) | 2488 | if (x_mouse_grabbed && FRAME_LIVE_P (last_mouse_frame)) |
| 2489 | { | 2489 | { |
| 2490 | /* If mouse was grabbed on a frame, give coords for that frame | 2490 | /* If mouse was grabbed on a frame, give coords for that frame |
| 2491 | even if the mouse is now outside it. */ | 2491 | even if the mouse is now outside it. */ |
| @@ -3993,7 +3993,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3993 | #ifdef HAVE_X11 | 3993 | #ifdef HAVE_X11 |
| 3994 | case MotionNotify: | 3994 | case MotionNotify: |
| 3995 | { | 3995 | { |
| 3996 | if (x_mouse_grabbed) | 3996 | if (x_mouse_grabbed && FRAME_LIVE_P (last_mouse_frame)) |
| 3997 | f = last_mouse_frame; | 3997 | f = last_mouse_frame; |
| 3998 | else | 3998 | else |
| 3999 | f = x_window_to_frame (event.xmotion.window); | 3999 | f = x_window_to_frame (event.xmotion.window); |