diff options
-rw-r--r-- | src/xterm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index a63fdafb836..573f11c15c3 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4570,7 +4570,8 @@ XTread_socket (sd, bufp, numchars, expected) before this event; any subsequent mouse-movement Emacs events should reflect only motion after the ButtonPress. */ - f->mouse_moved = 0; + if (f != 0) + f->mouse_moved = 0; } else { |