Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ce89ef46
Commit
ce89ef46
authored
Jul 27, 1996
by
Richard M. Stallman
Browse files
(last_mouse_press_frame): New variable.
(XTread_socket): Store a saved_button_event for ButtonRelease.
parent
745c34fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/xterm.c
src/xterm.c
+7
-0
No files found.
src/xterm.c
View file @
ce89ef46
...
@@ -195,6 +195,7 @@ static int curs_y;
...
@@ -195,6 +195,7 @@ static int curs_y;
/* Where the mouse was last time we reported a mouse event. */
/* Where the mouse was last time we reported a mouse event. */
static FRAME_PTR last_mouse_frame;
static FRAME_PTR last_mouse_frame;
static FRAME_PTR last_mouse_press_frame;
static XRectangle last_mouse_glyph;
static XRectangle last_mouse_glyph;
/* The scroll bar in which the last X motion event occurred.
/* The scroll bar in which the last X motion event occurred.
...
@@ -4047,6 +4048,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
...
@@ -4047,6 +4048,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
&& event.xbutton.same_screen)
&& event.xbutton.same_screen)
{
{
SET_SAVED_BUTTON_EVENT;
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
else
goto OTHER;
goto OTHER;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment