diff options
| author | Richard M. Stallman <rms@gnu.org> | 1996-07-27 20:30:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1996-07-27 20:30:31 +0000 |
| commit | ce89ef46f64cfaa4e76cfdeef68b7c546a7a7a5a (patch) | |
| tree | bfdfe90037cd18dbaaf3b161704e4f725a239dec | |
| parent | 745c34fbba7eb543b3f17d2f44b23d79198f75a4 (diff) | |
| download | emacs-ce89ef46f64cfaa4e76cfdeef68b7c546a7a7a5a.tar.gz | |
(last_mouse_press_frame): New variable.
(XTread_socket): Store a saved_button_event for ButtonRelease.
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 12850b0d1df..1b91915f4fb 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -195,6 +195,7 @@ static int curs_y; /* Where the mouse was last time we reported a mouse event. */ static FRAME_PTR last_mouse_frame; +static FRAME_PTR last_mouse_press_frame; static XRectangle last_mouse_glyph; /* The scroll bar in which the last X motion event occurred. @@ -4047,6 +4048,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected) && event.xbutton.same_screen) { SET_SAVED_BUTTON_EVENT; + last_mouse_press_frame = f; + } + else if (event.type == ButtonRelease) + { + if (!f) f = last_mouse_press_frame; + SET_SAVED_BUTTON_EVENT; } else goto OTHER; |
