changeset 100853:b660fb953e3d

(parse_modifiers_uncached): Wheel events are clicks (bug#687).
author Jason Rumney <jasonr@gnu.org>
date Sat, 03 Jan 2009 14:53:26 +0000
parents 71968bc03749
children 63cba20d8dca
files src/keyboard.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sat Jan 03 14:51:55 2009 +0000
+++ b/src/keyboard.c	Sat Jan 03 14:53:26 2009 +0000
@@ -6313,6 +6313,11 @@
       && ('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;