aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2009-01-03 14:54:52 +0000
committerJason Rumney2009-01-03 14:54:52 +0000
commita6d46bc12c9a4e741570412fb55c4798e9fd75a6 (patch)
tree3502e0405fe5900da5f59d143eb027c523607425 /src
parent4a0cf14fe940d05d95dadfff03a7b16c53e1cd32 (diff)
downloademacs-a6d46bc12c9a4e741570412fb55c4798e9fd75a6.tar.gz
emacs-a6d46bc12c9a4e741570412fb55c4798e9fd75a6.zip
(parse_modifiers_uncached): Wheel events are clicks (bug#687).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/keyboard.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 54731699d0a..aa13e72da71 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12009-01-03 Jason Rumney <jasonr@gnu.org> 12009-01-03 Jason Rumney <jasonr@gnu.org>
2 2
3 * keyboard.c (parse_modifiers_uncached): Wheel events are
4 clicks (bug#687).
5
3 * w32term.c (x_query_colors, x_query_color): New functions. 6 * w32term.c (x_query_colors, x_query_color): New functions.
4 7
5 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code. 8 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
diff --git a/src/keyboard.c b/src/keyboard.c
index 35257c6d999..127cae67ee0 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6313,6 +6313,11 @@ parse_modifiers_uncached (symbol, modifier_end)
6313 && ('0' <= SREF (name, i + 6) && SREF (name, i + 6) <= '9')) 6313 && ('0' <= SREF (name, i + 6) && SREF (name, i + 6) <= '9'))
6314 modifiers |= click_modifier; 6314 modifiers |= click_modifier;
6315 6315
6316 if (! (modifiers & (double_modifier | triple_modifier))
6317 && i + 6 < SBYTES (name)
6318 && strncmp (SDATA (name) + i, "wheel-", 6) == 0)
6319 modifiers |= click_modifier;
6320
6316 if (modifier_end) 6321 if (modifier_end)
6317 *modifier_end = i; 6322 *modifier_end = i;
6318 6323