diff options
Diffstat (limited to 'src')
| -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; | |||
| 195 | 195 | ||
| 196 | /* Where the mouse was last time we reported a mouse event. */ | 196 | /* Where the mouse was last time we reported a mouse event. */ |
| 197 | static FRAME_PTR last_mouse_frame; | 197 | static FRAME_PTR last_mouse_frame; |
| 198 | static FRAME_PTR last_mouse_press_frame; | ||
| 198 | static XRectangle last_mouse_glyph; | 199 | static XRectangle last_mouse_glyph; |
| 199 | 200 | ||
| 200 | /* The scroll bar in which the last X motion event occurred. | 201 | /* The scroll bar in which the last X motion event occurred. |
| @@ -4047,6 +4048,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 4047 | && event.xbutton.same_screen) | 4048 | && event.xbutton.same_screen) |
| 4048 | { | 4049 | { |
| 4049 | SET_SAVED_BUTTON_EVENT; | 4050 | SET_SAVED_BUTTON_EVENT; |
| 4051 | last_mouse_press_frame = f; | ||
| 4052 | } | ||
| 4053 | else if (event.type == ButtonRelease) | ||
| 4054 | { | ||
| 4055 | if (!f) f = last_mouse_press_frame; | ||
| 4056 | SET_SAVED_BUTTON_EVENT; | ||
| 4050 | } | 4057 | } |
| 4051 | else | 4058 | else |
| 4052 | goto OTHER; | 4059 | goto OTHER; |