changeset 3807:1dd4bb7090a2

RT-30869: Win: Pen events in Windows should not be synthesized Reviewed-by: anthony, art Contributed-by: Danno Ferrin <danno.ferrin@shemnon.com>
author Anthony Petrov <anthony.petrov@oracle.com>
date Tue, 04 Jun 2013 14:05:54 +0400
parents cb35abdbc183
children eaf163a8953c
files glass/glass-lib-windows/src/ViewContainer.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/glass/glass-lib-windows/src/ViewContainer.cpp	Tue Jun 04 10:55:10 2013 +0200
+++ b/glass/glass-lib-windows/src/ViewContainer.cpp	Tue Jun 04 14:05:54 2013 +0400
@@ -57,13 +57,13 @@
 
 namespace {
 
-bool IsPenEvent()
+bool IsTouchEvent()
 {
     // http://msdn.microsoft.com/en-us/library/windows/desktop/ms703320(v=vs.85).aspx
 
     enum {
-        SIGNATURE = 0xFF515700,
-        MASK = 0xFFFFFF00
+        SIGNATURE = 0xFF515780,
+        MASK = 0xFFFFFF80
     };
 
     const LPARAM v = GetMessageExtraInfo();
@@ -517,7 +517,7 @@
 
     jint jModifiers = GetModifiers();
     
-    const jboolean isSynthesized = jboolean(IsPenEvent());
+    const jboolean isSynthesized = jboolean(IsTouchEvent());
 
     JNIEnv *env = GetEnv();