From 17934267339ed9cff89a72724671d3df6339bb64 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Thu, 23 Jul 2015 16:57:06 +0200 Subject: Bug 1178: Fix cc0 WindowImpl: Swallow CLICK event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xerxes Rånby --- src/newt/classes/jogamp/newt/WindowImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/newt/classes') 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 } -- cgit v1.2.3