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:
parent
808d2e93bf
commit
9419259ff6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user