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
e471b241
Commit
e471b241
authored
May 27, 2003
by
Juanma Barranquero
Browse files
Add missing code from previous patch by David Ponce.
parent
af3a05ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
src/w32term.c
src/w32term.c
+5
-20
No files found.
src/w32term.c
View file @
e471b241
...
...
@@ -4451,7 +4451,7 @@ w32_read_socket (sd, bufp, numchars, expected)
}
}
button = (
GET_WHEEL_DELTA_WPARAM (msg.msg.wParam) < 0
)? 4 : 3;
button
=
(
GET_WHEEL_DELTA_WPARAM
(
msg
.
msg
.
wParam
)
<
0
)
?
4
:
3
;
if
(
up
)
{
...
...
@@ -4816,27 +4816,12 @@ w32_read_socket (sd, bufp, numchars, expected)
break
;
default:
/* Check for messages registered at runtime. */
/* Check for messages registered at runtime.
*/
if
(
msg
.
msg
.
message
==
msh_mousewheel
)
{
if (dpyinfo->grabbed && last_mouse_frame
&& FRAME_LIVE_P (last_mouse_frame))
f = last_mouse_frame;
else
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
if (f)
{
if ((!dpyinfo->w32_focus_frame
|| f == dpyinfo->w32_focus_frame)
&& (numchars >= 1))
{
construct_mouse_wheel (bufp, &msg, f);
bufp++;
count++;
numchars--;
}
}
/* Forward MSH_MOUSEWHEEL as WM_MOUSEWHEEL. */
msg
.
msg
.
message
==
WM_MOUSEWHEEL
;
prepend_msg
(
&
msg
);
}
break
;
}
...
...
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