Commit a6d46bc1 authored by Jason Rumney's avatar Jason Rumney
Browse files

(parse_modifiers_uncached): Wheel events are clicks (bug#687).

parent 4a0cf14f
2009-01-03 Jason Rumney <jasonr@gnu.org>
* keyboard.c (parse_modifiers_uncached): Wheel events are
clicks (bug#687).
* w32term.c (x_query_colors, x_query_color): New functions.
* image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
......
......@@ -6313,6 +6313,11 @@ parse_modifiers_uncached (symbol, modifier_end)
&& ('0' <= SREF (name, i + 6) && SREF (name, i + 6) <= '9'))
modifiers |= click_modifier;
if (! (modifiers & (double_modifier | triple_modifier))
&& i + 6 < SBYTES (name)
&& strncmp (SDATA (name) + i, "wheel-", 6) == 0)
modifiers |= click_modifier;
if (modifier_end)
*modifier_end = i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment