1659: 3dconnexion space navigator moves view even when FreeCAD is not the active application

Check whether the freecad window is active before relaying the space navigator events.
This commit is contained in:
Michael G. Hansen
2014-08-18 22:26:05 +02:00
committed by wmayer
parent 675693c719
commit e2cd67e99b

View File

@@ -100,6 +100,9 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)
bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object, QEvent *event)
{
if (!activeWindow())
return true;
QApplication::notify(object, event);
if (event->type() == Spaceball::MotionEvent::MotionEventType)
{