diff options
author | Scott Kovatch <skovatch> | 2011-01-20 22:39:33 +0000 |
---|---|---|
committer | Scott Kovatch <skovatch> | 2011-01-20 22:39:33 +0000 |
commit | 9261515ec8255f5a441ba43146e123e19181d535 (patch) | |
tree | d1d12ea7b54bddf006fe42227ee732d9bf34e3b9 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | |
parent | 3737d971237ad7c6a046b0f97620eabf44adf7b6 (diff) | |
download | eclipse.platform.swt-9261515ec8255f5a441ba43146e123e19181d535.tar.gz eclipse.platform.swt-9261515ec8255f5a441ba43146e123e19181d535.tar.xz eclipse.platform.swt-9261515ec8255f5a441ba43146e123e19181d535.zip |
clean up post vs. send on gestures & touch
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index 77f06c4ae0..20ae18382a 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -2903,7 +2903,7 @@ boolean sendGestureEvent (GESTUREINFO gi) { if (type == 0) return true; setInputState (event, type); sendEvent (type, event); - return true;// event.doit; + return event.doit; } void sendMove () { @@ -2914,7 +2914,7 @@ void sendResize () { sendEvent (SWT.Resize); } -boolean sendTouchEvent (TOUCHINPUT touchInput []) { +void sendTouchEvent (TOUCHINPUT touchInput []) { Event event = new Event (); POINT pt = new POINT (); OS.GetCursorPos (pt); @@ -2938,7 +2938,6 @@ boolean sendTouchEvent (TOUCHINPUT touchInput []) { event.touches = touches; setInputState (event, SWT.Touch); postEvent (SWT.Touch, event); - return true; } void setBackground () { @@ -5379,10 +5378,9 @@ LRESULT WM_TOUCH (int /*long*/ wParam, int /*long*/ lParam) { ti [i] = new TOUCHINPUT (); OS.MoveMemory (ti [i], pInputs + i * TOUCHINPUT.sizeof, TOUCHINPUT.sizeof); } - if (!sendTouchEvent (ti)) { - OS.CloseTouchInputHandle (lParam); - result = LRESULT.ZERO; - } + sendTouchEvent (ti); + OS.CloseTouchInputHandle (lParam); + result = LRESULT.ZERO; } OS.HeapFree (hHeap, 0, pInputs); } |