mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-12 14:30:42 -08:00
(last_mouse_press_frame): New variable.
(XTread_socket): Store a saved_button_event for ButtonRelease.
This commit is contained in:
parent
745c34fbba
commit
ce89ef46f6
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue