diff options
author | Xerxes Rånby <[email protected]> | 2015-07-23 16:57:06 +0200 |
---|---|---|
committer | Xerxes Rånby <[email protected]> | 2015-07-28 23:47:47 +0200 |
commit | 17934267339ed9cff89a72724671d3df6339bb64 (patch) | |
tree | d43a4ca41d4a077798dafa1f91d7f529357558ef /src/newt/classes/jogamp | |
parent | f84af439535640e1072b6cd670aa44cbe91ef052 (diff) |
Bug 1178: Fix cc0 WindowImpl: Swallow CLICK event
Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 5 |
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 } |