Handle GUI event only once

This commit is contained in:
kaetemi 2014-09-23 19:47:06 +02:00
parent f6a5adb597
commit 3158f6d90e

View file

@ -2313,7 +2313,9 @@ namespace NLGUI
getCapturePointerLeft() != getCapturePointerRight() )
handled|= getCapturePointerRight()->handleEvent(evnt);
if( _CapturedView != NULL )
if( _CapturedView != NULL &&
_CapturedView != getCapturePointerLeft() &&
_CapturedView != getCapturePointerRight() )
_CapturedView->handleEvent( evnt );
CInterfaceGroup *ptr = getWindowUnder (eventDesc.getX(), eventDesc.getY());