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:
committed by
wmayer
parent
675693c719
commit
e2cd67e99b
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user