aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2015-07-23 16:57:06 +0200
committerXerxes Rånby <[email protected]>2015-07-28 23:47:47 +0200
commit17934267339ed9cff89a72724671d3df6339bb64 (patch)
treed43a4ca41d4a077798dafa1f91d7f529357558ef
parentf84af439535640e1072b6cd670aa44cbe91ef052 (diff)
Bug 1178: Fix cc0 WindowImpl: Swallow CLICK event
Signed-off-by: Xerxes Rånby <[email protected]>
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index 8e31d1d21..091e6243a 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -2997,8 +2997,8 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
final MouseEvent e;
switch( eventType ) {
case MouseEvent.EVENT_MOUSE_CLICKED:
- e = null;
- break;
+ // swallow CLICK event
+ return;
case MouseEvent.EVENT_MOUSE_PRESSED:
if( 0 >= pPressure[0] ) {
@@ -3062,6 +3062,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
e = new MouseEvent(eventType, this, when, modifiers, pTypes, pID,
pX, pY, pPressure, maxPressure, button, (short)0, rotationXYZ, rotationScale);
}
+
doEvent(enqueue, wait, e); // actual mouse event
}